Gosu support

This pull request is work in progress for Gosu support.