Preliminary Qt5 support

Based on #1, so there are a few extra commits...

Only makes it to a point where things don't crash. Currently, there is a problem with the `Scripter` object in Python, so things don't quite load yet.