add segment.io and ENV variable
only include segment javascript if app has a segment API key
Merge pull request #493 from Tahi-project/segment

Segment