Reworked Code Entry and Grant/Revoke Systems

Setup optional database level uniqueness for code entries; this fixes a
major oversight in the code entry system's design which could fall
victim to race conditions.
Improved the grant/revoke system to be targeted; no more will it make
guesses or mass update entries for a given day.
Made grant/revoke button smaller.