Dc/feature add file upload to modal

got the file upload from the modal to work. Also moved some of the file upload and creating of the new post into the modal controller out of the post controller May need to refactor this a bit more