moving password generation logic into a class
using params instead of  array in the class construct method
adding generate.php to generate json version
handing json request and response properly
returning meaningful response codes
simplifying the boolean configuration values, allowing them to be correctly passed by the json end point
adding successful case for generating password via ajax
displaying errors if any