G.B.
Whatever the issues are between you and your ex, you always need to put your child first. Remember - you brought him into this workd - he didn't choose to be here, or to be put in the position that his parents are now in. So, make every decision with "what's in the best interest of the child?" That's the standard that a court will use in determining custody and visitation. It sounds like it's a good thing that you are in court now. That will force issues to be decided officially - i.e. cusotdy and visitation, instead of just relying on each other to "do the right thing". You will have to go to family mediation, which is also a good thing - it will give the 2 of you a chance to deal with things in a less emotional way. Also, the court will appoint someone to act on your childs' behalf so that his interests are protected.
It's true that if you take your con out of the county right now, the court will not look favorably on it. If you need a restraining order, so be it, but unless your son is in danger, you shouldn't take him anywhere. Let the court system help get things worked out.
Good luck. Please don't do anything rash - for the sake of your son.