Removed isDev from admin and changed to getAuthLevel. Also fixed getAuthLevel to return the right key for level