Security, Pulling users from logging or user table, default project

- Addresses the issues raised by Chris (csteipp@wikimedia.org) to prevent database vulnerabilities from being exposed by the API.  Reworked a lot of the query logic contained in the query sub-package to leverage built in MySQLdb operations to fix these issues.

- When user registration date is queried if it's not found in the logging table fall back on the user table

- Use the project in usertags_meta table as default project for request.