Support leap and notes-server (including automatically npm-installing if notes-server is used). Closes #11