Clean up Rails and compass integration code

Should fix #53, and ic closer to best practices.

@abenari @brocktimus for review.