Added lifecycle stubs.Implemented attach lifecycle.Other actions; promot...

...e and demote cannot be implement due to a bug in the underlying Java class