Include doc

http://manage.dimagi.com/default.asp?130258
http://manage.dimagi.com/default.asp?130259

@millerdev 
This is the real change. The rest is getting tests to work and some minor fixes to cached database.