Apps specs and cleanup

WIP - Adding app specs and general clean up. 1a1db4f and forward are based off of the rails4 pr (#4).