Added html/slash escape support in templates.
Streamline URL escaping.
Moved lib/client working path to make upstram merges easier.