Add post-commit-hook infrastructure to handle porting to Qt5
Remove various bits of special processing when compiling .ui forms