Adding first draft of server script and templates.