adds more middleware, implements more api functionality

login verification middleware
get answer by id
get answer's revisions