[WIP] Ragios v0.6.1

- Major code refactor.
- Cleaner simpler code
- Improved performance
- Less document updates  on the database.
- Better CouchDB document design