updates to fix initialisation

- server: fix site initialization to save properly modified users, tamplates and structures
- server: fix string conversions
- client: TDProxy replaced with TDClientProxy
- updated tide