Arborweave master

Manually merged teng's work.
As the templates are free of eval now, also changed all his part.
New database table created in 1.0 update file.
To use new features, you may need to setup again or create a new table {links} directly.