func NewAppContext() (*AppContext, error) {
	return &AppContext{Session: nil}, nil
}
NewAppContext creates an empty application context object
package main
import (
	"encoding/json"
	"fmt"
	"log"
	"net/http"
	"github.com/docker/distribution/notifications"
	"gopkg.in/mgo.v2"
	"gopkg.in/mgo.v2/bson"
	"flag"
	"github.com/golang/glog"
	"io/ioutil"
	"math/rand"
	"strings"
	"time"
)
type AppContext struct {
	Config  *Config
	Session *mgo.Session
	c       string
}