adds gradle build scripts
Small update to move build out of source trees

I tweaked build.gradle to add a top level build directory to put
compiled files into.
Merge pull request #348 from langtech/gradle

adds gradle build scripts 

@hleeldc - I added a commit to move the build out of the src trees; if this bothers you, I'll revert that.