Add templates again so they can be used by QtCreator.
Merge pull request #53 from ahmedcharles/templates

Add templates again so they can be used by QtCreator.
Remove serialize/restore, since they are dead code.
Remove dead stats code from AliasUnit.
Remove dead code.