caf: remove the use of #tempfile and #securerandom
examples/input: add #host restriction. Filename with spaces
One commit for everything

* Change internal function name (_local_ -> _local)
* Allow #host restriction (:on, :xon)
* Using #type command to have better (handled) output
* Do not accept space in #bundle name