Standardize ag_data_access return types

Functions should return dicts (or a list of dicts when more then one row is
returned) where the keys of the dict(s) are column names.
Fix imports, pep8 compliance, commented-out code
Name previously unnamed column in procedure

I also changed this on webdev-kl4
Update tests to use new code and API
Remove unnecessary renaming of self.connection
Correct column names in auth handlers
Correct name of method in forgot_password handler
Fix bug: pass just barcode instead of whole dict
Update portal.html for new API
Merge pull request #53 from adamrp/issue-52

Standardize ag_data_access API