initial gradle build script

currently only compile
and almost half tests fails, but as gradle capabilities demonstration should be enough

let me know if you have any specific build functionality