zpm: remove unused function _add_ui
zpm: version robustness in _prepare_auth

For version 1.0 auth, for example, we were expecting the version to be
given as '1.0'. I found a real-world case where it was just '1' instead,
and it pretty much broke the auth option rendering in the UI template.