reformat to match ruby style guide and move to .erb instead of .in

This may look like a lot of changes but this is really just reformatting the code to follow the [ruby style guide](https://github.com/bbatsov/ruby-style-guide) as much as possible before we move this into a measure or something else.

By the way, this is pretty slick. Camera angle is a little wide, but definitely impressive. Good work!

Also, i ran this with ruby 2.0 without any issues.