Add POST, PUT and DELETE methods for tasks. Update handlers to check for successful updates and reply with well-formed json