Update to Actions

Added If, Else, While, and Repeat functionality. Made actions smaller by
creating two new functions (handleCondition and doScript). Some variable
renamings.
Merge pull request #1 from dixonj30/master

Update to actions. Added new functions.