Added more error handling

Updated various files, added error and exception handling, prevented
different crashes that could happen in certain circumstances.
Debounce screen rotation

Updated RotationHandler to mimick the delay and angle allowance
that real screen rotations have.
Prevents the UI from being constantly redrawn any time the phone is
jostled at a certain angle.