added time to live to parties. fixes #5

Should be tested before merging.