cmd/oauth: implemented callback handler.
cmd/oauth: refactored callback handler.