Merge pull request #252 from campadrenalin/cjdlua

Lua library for CJDNS administration
Update cjdns.sh

1. CJDPATH is declared _with_ the trailing slash, but in function update() it is assumed to have no slash at the end. Corrected this. No trailing slashes in path variables now.
2. In echo output, cjdns is spelt inconsistently -- uppercase in some places and lowercase in others. Corrected this. Uppercase everywhere now.
3. Misc typos, like "ot" instead of "to". Corrected.
Create cjdns
Update cjdns.sh

1. If cjdroute is not running, 'cjdns.sh stop' pretends it stops cjdroute, but actually does nothing. Corrected this. Now 'cjdns.sh stop' reports that there's nothing to stop and exist with status 1.
2. As per my comment here (https://github.com/cjdelisle/cjdns/pull/250#issuecomment-21322147), 'cjdns.sh update' falls short of restarting cjdroute, falsely reporting that it's already running. I corrected this. Now it updates, stops cjdroute, rechecks PID and starts the updated cjdroute.
Merge pull request #253 from ciubotaru/initscript

Update cjdns.sh
Merge pull request #254 from ciubotaru/master

Minor edits in cjdns/scripts
Update README.md

change nmp to npm
Merge pull request #255 from iShift/patch-2

Update README.md
Merge branch 'master' into cjdlua