Merge pull request #46 from dimagi/cz

fix tests + cleanup
add cases_received signal
Merge pull request #48 from dimagi/cases-received-signal

add cases_received signal
let case xml generator work with ints too