Allow passing templates and node_modules to client; refactor navbar