Fix some bugs, such as not checking if a user was logged in for the character/account/key detail pages, and showing the add permission box on character detail pages to those who can't grant permissions.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>