Merge pull request #10 from Chilledheart/travis-ci

Add travis script
Cleanup code
Skip deprecated g_type_init() for GLib 2.36