Lifecycle UI changes Part 2

The second commit containing the Lifecycle UI changes.

This commit auto generates the buttons for promoting and demoting based on the lifecycle scxml.

Changes:
-Removed the existing buttons for promoting and demoting (They are automatically generated)
-Removed the life-cycle script from loading in the page,instead it loads in the helpers
-Supports life-cycle operations other than Promote/Demote