Add gradle support, cleanup

The submodules aren't used, so I don't know why they are there. I suppose they can be removed. Didn't do that in case you want them for something in the future.