Moved OAuth-specific implementation to a separate library.
Fixed issues with this branch
Merge pull request #1 from masom/x-domain

X domain