Changed Action to function type, added api package object to store Action type, updated flow runners and tests