grel.js
function GrelRequest(grel) {
    var authString;
    
    if (grel.token) {
        authString = grel.token + ':';
    } else {
        authString = grel.user + ':' + grel.password;
    }
    
    this.headers = {
        'Authorization': 'Basic ' + new Buffer(authString).toString('base64'),
        'Accept': 'application/vnd.github.manifold-preview',
        'User-Agent': 'Grel'
    };

    this.grel = grel;
    this.content = null;
}
function GrelRequest(grel) {
    var authString;
    
    if (grel.token) {
        authString = grel.token + ':';
    } else {
        authString = grel.user + ':' + grel.password;
    }
    
    this.headers = {
        'Authorization': 'Basic ' + new Buffer(authString).toString('base64'),
        'Accept': 'application/vnd.github.manifold-preview',
        'User-Agent': 'Grel'
    };

    this.grel = grel;
    this.content = null;
}
Creates a new instance of the GrelRequest class.

This class is used when sending HTTP requests to GitHub and it automatically handles
user authentication and a few other things.

@param {Grel} grel Grel object that is used for authentication