do not create global variables
support arbitrary attachments
display correct template when attachment or image
post process attachments
don't track via AJAX when clicking on local attachments
refactor optimized_image a bit
update nginx.sample.conf to take attachmetns into account
update back-end specs
update front-end specs