Add period and dimension values to id

Without these the id is not unique. Base64 encoding the id to allow any
dimension values.

@maxfliri
@robyoung