Adding modularity to HTTP/JSON/Servlets