Add serial IDs and use those as PK / FK targets
Add serial IDs and use those as PK / FK targets

A bigserial is an auto-incrementing bigint, which is 8 bytes, as
opposed to 32 bytes for an authz_id.  This will keep tables smaller,
which will allow more rows to fit in the server's cache, which will
improve performance.

Also added a few helper functions that take an Authz ID and returns
the internal database ID.  These are intended for internal use.

stephenbm/chef-server,charlesjohnson/chef-server,chef/oc_bifrost,vladuemilian/chef-server,stephenbm/chef-server,itmustbejj/chef-server,Minerapp/chef-server,vladuemilian/chef-server,chef/chef-server,poliva83/chef-server,charlesjohnson/chef-server,vladuemilian/chef-server,Minerapp/chef-server,charlesjohnson/chef-server,chef/chef-server,rmoorman/chef-server,itmustbejj/chef-server,vladuemilian/chef-server,chef/chef-server,itmustbejj/chef-server,stephenbm/chef-server,chef/chef-server,marcparadise/chef-server,poliva83/chef-server,itmustbejj/chef-server,charlesjohnson/chef-server,poliva83/chef-server,Minerapp/chef-server,juliandunn/chef-server-1,marcparadise/chef-server,chef/oc_bifrost,vladuemilian/chef-server,marcparadise/chef-server,rmoorman/chef-server,juliandunn/chef-server-1,chef/chef-server,stephenbm/chef-server,marcparadise/chef-server,marcparadise/chef-server,rmoorman/chef-server,juliandunn/chef-server-1,rmoorman/chef-server,Minerapp/chef-server,juliandunn/chef-server-1,chef/chef-server,itmustbejj/chef-server,poliva83/chef-server,poliva83/chef-server,charlesjohnson/chef-server,Minerapp/chef-server,stephenbm/chef-server,juliandunn/chef-server-1,rmoorman/chef-server