Add internal properties

http://manage.dimagi.com/default.asp?131267#738235

@nickpell