Added support for custom invite templates and added hook trigger

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