Added getActivationCode gateway to the User controller.  This commit also includes several bug fixes.