Move riverd core code to riverd directory
Move to specific dirs
Add work on api
Add api impl
Add first test route to api
Add basic sample spec file
Add spec file module
Remove export of records

Also add specific access functions.
Make branchSpec optional
Update function names
Merge pull request #2 from wayofthepie/rest

Rest