Architecture & Cleanup

Hi -

Added a few lovely gems, fixed a few things, introduced a static code analyzer to help keep everyone on the same page stylistically and brought over rspec.