Initial commit with code shamelessly taken from omniauth-facebook