To betray Qeynos and move to Freeport, talk to someone in the inn at Qeynos Harbor. You'll need to be level 15'ish to complete the quest, and you can't start it if you're past 17. Note that you will also not be allowed to reach lvl 18 until you complete the betrayel quest, and it's not something quick and easy. One step alone will require you to kill 500 enemies.
I don't know who to talk to to betray Freeport, though.