use warn module for deprecation warnings
Merge pull request #951 from dimagi/warn

use warn module for deprecation warnings