did minor fix in UserActionHandler
updated TaskServlet and UserServlet to work the same way and set content
type to json