Add time_to_live parameter into the barclamp

Cherry picked from https://github.com/crowbar/barclamp-ceilometer/pull/162