Finished logic for determining when variables are out of scope, created UIPrompt class

The UIPrompt class is used to provide a block based UIAlertView and
also to allow for a blocking prompt