Replace Regex.test with String.substring for comparison

Performs a bit better based on jsperf tests
Delete logged out ID's from storage by default when alias() is called