For automatic 404-handling, send back response conforming to Accept header.
Moving vote functionality into Poll object. Code cleanup.