Add key last accessed. Move key generation to user page. Ref #529