Added generic task invoke system

Signed-off-by: Tom Wright <tom@inflatablecookie.com>