gemspec: make dependencies less strict
application: clean up the Weechat module API, and gracefully close on quit