Move java-main into project structure

Previously, the code for the sample application was simply checked
into source control.  This change moves it into a Gradle-built project
structure along with documentation on how to build it.  This will
allow other users to more easily use the applications.