Updated client libs

Also the way it loads client side templates. Basic application layout
changed.