autoformat code (mainly converting 2-space tabs to 4-space)
use self instead of this for clarity
force reset NUM_PENDING_REQUESTS in touchforms when all requests are done

http://manage.dimagi.com/default.asp?115663
Merge pull request #56 from dimagi/stuck-sessions

potential fix for stuck sessions in cloudcare + cleanup