Html5 bridge

Merge the html5 client with the newest flex client