Changed native javascript Script.contains() to SugarJS' String.has() 

String.contains() is a bit too new and not all browsers will be supporting it
Added a modal window that appears if an exception is thrown during reading in of user's session. This allows users to clear their session and not be daunted by the overlay load screen