Ajaxify the posts resource

Add create and delete actions through Ajax for the posts resource.