ignore newlines on all <% erb tags

see http://craiccomputing.blogspot.com/2010/04/suppressing-newlines-in-ruby-erb.html
Fix issue with nested mediators

define each module individually, ident accordingly

pretty messy code :{ down for suggestions on how to improve
Merge pull request #48 from 12-oz/pedro-fix-nested-mediators

Fix nested mediators