Python 3.3+ porting

Still WIP, but it works well enough for the quickstart app to function in both 2.7 and 3.3.

I need to write more tests before this is merged, the coverage isn't complete for some handlers.

Resolves: #3