Refactored out writing of JSON object.
Added test for doPut of RunServlet.
Added test for doGet of RunServlet.
Updated formatting to Apache Shindig standards.