Move TPL into lib

Plus new paths entry in includejs config to support this.