Add AppKit login controller, fix clear keychain method on OS X