nsh updates

I'll be working on updates and improvements of nsh on this pull-request. The first one start using REPL instead of plain readline and move the shell related functions to an independent module. Next ones will be enabling Javascript scripting while still allowing commands instantiation, and usage of shell.js (very powerful library, although seems are having some problems and needs some fixing...), and I hope later continue making it (ba)sh compatible.