add log_exception decorator
Merge pull request #73 from dimagi/log-exception

add log_exception decorator