Added initial support for a templating system.

This should be good!
Moved lib500, also added some basic server functionality