Update query to return mysqli_result
FIXES T175
Basic way to look back at an extended project to load resources

Summary:
This will need to be replaced in future but needs to be backwards
compatible for now. By setting `extends = some/path` under the
`[project]` config you can set a source directory from the base of
the current project to search for any external resources.

Test Plan: Load a resource from an extended project fromit's extender.

Reviewers: brooke, fobilow, JayFrancis

Reviewed By: JayFrancis

CC: seemly

Differential Revision: http://phabricator.cubex.io/D40
Correctly build path before calling isDir()
CUBID Support
UUID and CUBID ID Types on Data Mappers
Update Database Queue to use CUBIDs
Properly escape database
append .
renamed UUID to UNIQID to allow for standard UUID Types in the future
Standardise columns to match mapper schema preferences
Fixes T177
Fixed pushBatch for different ID types
Update batch delete to work with new ID types
Updated build path logic

Fixes rQBEXca19e3dc5d45d72dba9fc823a94852aadbe2ed0e
Fixed Checkbox Label Bug.

Checkbox was not using label if LABEL_SURROUND_LEFT/RIGHT was specified. Updated code to it uses label instead of name when building options for non-multi checkboxes