refactor
fix test
fix referer handling in OAuth
Merge branch 'OAuth'