Multiple enhancements to the project

* fixed several errors (assigning integer value with raise_on_invalid = true, :default => nil)
* added support for rails 4
* fixed names scopes for rails 3
* updated specs and added travis CI