Add restful API controllers

Add specs and testing for restful API controllers
Could probably use some insight on how VisibleMotions is supposed to work in this context.