Fixed the crasher by adding AMViewController base class that tracks view...

@hogandanhogan pay particular attention to the code I added in AMViewController to track state with view lifecycle callbacks.  The crash fix is accomplished by using the state variable to determine whether or not to execute scrollViewDidScroll code in the AlarMockViewController.