Fixed localstorage creation and caching of the messages before creation ...

...finished

1. It is safe to add DocumentFragment to the body before page finishes rendering
2. It is a good idea to cache all requests and serve them when iframe is ready