Feature/api refactoring

Moves current REST API as well as the timelines API into their own versions of one application API. Core becomes v1, timelines becomes v2. There is no combined version 3 yet.

- [x] Merge from timelines repo
- [x] Get the tests to run
- [x] Restore original migrations
- [x] Create new migration
- [x] FIX ALL THE TESTS!
- [x] Merge feature/rails3

This one is work in progress and does neither pass specs nor merge with the core flawlessly. Proceed with caution!