Added semi working mobile and sync loader

The trick is to capture the document.writes and insert them into the correct context (div etc)