Add support for passing parameters

Adds better argument handling, and support for passing parameters to the Action API