Adding unit tests. Using as_p in example templates. Using get_object_or_404 shortcut. Consolidating AuthenticationKey model.