Set up gradle

Don't merge this in quite yet, still fiddling around with the travis-ci stuff.