Feature/632 rest framework

A bunch of API fixes for Up.