Add auto-incrementing id field to Gateway second factor.
Make registration code comparison case-insensitive.
Project Gateway second factors.