partial init handler

* re-initialisation handler will be implemented later, when add handler done
Improve security and portability

* Use openssl rand instead of /dev/urandom
* Return function result using cat and here-documents instead of echo
  (which might be separate executable, showing it's args in ps-like tools)
Merge branch 'feature/handler-init' into next