Changed the file queryr code to return an actual JSON object instead of
a bare JSON array
Added some error logging if the ldap bind fails
When checking for username & password, verify that the strings are
non-zero length.