Move riverd core code to riverd directory
Move to specific dirs
Add work on api