Add ajax file upload and markdown convertsion

Please use [jbuilder](https://github.com/rails/jbuilder) views for json responses.