database.yml simplified.
gitignore file modified.
mapping_controller added.
REST API re-designed to accept JSON properly.