allow order by random()
Merge remote-tracking branch 'refs/remotes/upstream/3.0-beta' into 3.0
oauth fix for 3.0
Merge pull request #251 from will123195/3.0

oauth fix