update travis ci yml to output phantomjs version
re-factor structure, add posts_view.rb