All sort of updates!

* Rake tasks to update data for 2013.
* Upgraded rails and libs.
* Cleaned up old code and conventions.
* Other odds and ends.