move redbooth API code to lib
removed autogenerated tests