move constants to a separate module in hopes of fixing weird import error

http://manage.dimagi.com/default.asp?101176
Merge pull request #2705 from dimagi/hope-cleanup

move constants to a separate module in hopes of fixing weird import error