Added a command to integrate with contracts. 

The command associates with an action to run it programmatically.