Making localStorage comparmentalise state by URL.