Gradlefy common

Making this a gradle project with gradle wrapper scripts embedded to enable (in theory) command line building on linux, mac and windows. Not tested on windows.