Added passwords_json function to Util

Added a function for generating and returning one or more passwords and
entropy stats as a JSON string.