Support multiple app environments

This commit makes multiple app environments a reality by including the
app root in in paths used by sprockets.

Fixes #40.
Fix newlines