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