From the CIC website: "If you plan to stay longer than six months or intend to work in Canada, you may be considered a temporary worker and have to apply for a work permit." Self-employment wouldn't be an option for a work permit, even though software developers kind of fall into the skilled worker class (which helps with some bits but is a very long shot for you to bank on); you'd almost certainly need to be working full-time, and your employer needs to file for a Labour Market Opinion (LMO) to justify hiring you, which can take some time.
If you have further questions, email me at http://scr.im/amh.
ADD: Skilled worker info that I dug up.
"As of July 1, 2012, CIC will temporarily stop accepting applications for the Federal Skilled Worker Program (FSWP). This temporary pause does not apply to those with a qualifying job offer or applying under the PhD stream. We will likely start accepting applications again when the revised FSWP selection criteria take effect. Proposed FSWP changes should come into force in early 2013." http://www.cic.gc.ca/english/information/applications/skille...
List of non-LMO work permit options: http://www.cic.gc.ca/english/work/apply-who-permit.asp
Family and I are moving there in a month (I'm US citizen, rest of family is dual US/Canadian). We live in Australia now but are making the move to Victoria nearly sight unseen. I visited it for a week scouting and liked it quite a bit, though living there might be a different story.
"Business visitors
A business visitor is someone who comes to Canada to engage in international business activities without directly entering the Canadian labour market. Business visitors usually stay in Canada for a few days or a few weeks but are able to stay for up to 6 months. A business visitor is a separate category with separate requirements. Business visitors do not require a work permit. For more information, see information for business visitors."
That might work as a freelancer.
And this wording is interesting:
"Business people covered by NAFTA do not need a labour market opinion (LMO) from Human Resources and Skills Development Canada (HRSDC). This means that Canadian employers do not need to have a job offer approved by HRSDC to hire an American or a Mexican business person, as set out in NAFTA."
I am not a lawyer and definitely not particularly familiar with Canadian law. Just found this page that seemed that it might have some answers to part of your question.
Frank
The wording on the NAFTA bit doesn't help as much as you might hope, though; GP doesn't match any of the long-term categories so his main sticking point is the 6-month maximum for business visitors.
Boston -> Toronto here. It wasn't as easy as you might hope. My wife's employer paid for an attorney to manage the paperwork, which was pretty awesome. Total time to permanent residency: about 3 years. Since our residency was finalized within the last 6 months, the 3-year estimate is pretty current; I think this should be considered the lower-bound.
I can't imagine how it would work for a freelancer. In my case, I tagged along with my wife who had a formal offer of employment. If not for her employer, I don't think it would have been possible to get the work visas and ultimately get residency.
I'd like to live in Toronto at least for a couple of years, but I'm not sure how involved the redtape would be, especially because I'm a freelancer and I won't really have a Canadian employer, clients, or a business purpose I can claim for my residency.