Badgeville environment customization

I've just added an ability to specify badgeville environment (sandbox or ap.v2)