Handle exceptions in action handlers

Fixes #19
Add hasOwnProperty(key) check in Dispatcher constructor

Signed-off-by: Brandon Tilley <brandon@brandontilley.com>
Whitespace fix