Make nami a bit more configurable; Add option to disable logging

Logging will be automatically disabled if log4js is not found.