Fix bug with time parameter in track

When setting a time for a track event, set the parameter before
converting to base64 encoded string.
Merge pull request #3 from markglenn/master

Error when setting time parameter on track/track once events