Flagging, searching username, & getting username with note

Also clean up, use playerId instead of loggedIn, & retain cycle fixes