fix nesting on grunt file
add /reply/:msgid and /thread/:msgid endpoints
integration tests added for /thread/:msgid