Started work on the "new client" functionality

Issue #65. Also intoduced part of the new tpl directory structure as
requested in issue #30.