Refactor how URLs are ignored

- Change from ignoring URLs to handling URLs which helps in
  situations where alternative logic is required such as
  a 401 response from incorrect login credentials
- Migrate to 'use strict' within a closure
- JSLinted