add attributes to lifecycle states (max_duration, notification_before)
Merge branch 'master' of http://github.com/teeple/pc_dev