adjusted create method to accomodate ajax requests
added json formato to form
put posts.js.coffee back to posts.js and wrote code to insert posts into the table