sets up initial API environment. Adds API gem and resets applicationcont...

...roller's inheritance