Made app a ruby gem.  This required a workaround for an issue with the latest activeresource gem's has_many association as well