Adds optional completion handler for actions

This is just one thing I really have missed in the other versions. The ability to get notified when your actions are completed, using blocks.

I tested it with actions running simultaneously and the completion handlers were called as wanted.