Cleaned up stuff

The two commits before this are updates to the api including code clean
up, Oauth2 auth server integration etc etc. I have resource server
working, but not integrated, it will be in the next commit.
Read extended desc

Built up more Oauth methods. (The demo script is very under developed
requiring you to fill in many of the methods enforced by the interfaces)
Created a series of example routes to make development debuging a bit
easier. (Not to replace PHPUnit, but to debug little things as I go
along)
read ext desc

Fixed some namespace issues with auto loading
Integrated OAuth Auth and Resource funtions into one class
Changed all ids in db to int 11 unsigned (The eer model I gopt back only
some where changed)
Added fields to clerks for password hash, hash salt, date created and
date last login
created a pieces table and an invoice peices table
added group types table
added phone and fax fields to group table per request from Chrissy for a
fax number for rental accounts, I assume she means for the group as a
whole. (This could also be done by using the info of the main customer
of the group, but also good to have the other option?) Also added fax to
customer table
added two tables for clerk group permissions "clerk_group_permissions"
and "clerk_group_permissions_assign"
Went through all items in the google doc looking for any issues with the
current database tables and changed accordingly (Items listed above)