Replace manual JSON generation by GSON
Move obtaining the connection to a servlet filter

Closing will be done by the filter for us
Add initial handwritten DAO layer

Not sure if a persistence framework makes sense here or not, well see later.