Factored all useful code in NewJamActivity into MainActivity.
This includes creating the jam in the server-side database and booting up the local server.