Fix and add specs.

I couldn't run original specs. This commit changes the spec directory
structure and adds a dummy rails app in spec/dummy, while introducing
some new specs. Also added default rake task to run specs.
Merge pull request #2 from ruipserra/fix_tests

Fix and add specs.