Replace calls to deprecated functions

Replace calls to deprecated functions get_users_of_blog(), wp_login(), wp_clearcookie() and wp_setcookie()