Content images with captions

cleaned up javacsripts
changed global folder to libraries
added require_tree . to application.js
added if to content.js to only run on required pages
fixed image_content submission by changing id of file upload form
fixed text_content submission
made image captions work