Detect localStorage functionality in IE10

In IE10, localStorage is available but (depending on security settings) might not work. This fix tries to detect this and define the storage service accordingly. This fixes the IE10 empty map bug.

@oterral as discussed. Please review for tomorrow.