Split resources off in source tree.
Added gradle build script.