AMS added to Gemfile and removed useless database file.
Now use the last stable version of Devise and add api-versions gem.
Generated base models and removed active_record stuff.
Configuration of base models.