refactored servlets to create datastore access layer

implemented toJSONString methods
converted back to java 7
completed writing of json data to response in getEntries