redo architecture to have a basic node server running and to split templates from directives