Moved user credential and authentication code to Common.  Updated some crypto types.