1) Updated to work with Rails 4.0 stable 2) Fixed activerecord 4 depreca...

...tion warning 3) tests now run without errors/warnings