Very basic OAuth-related classes and some logic