fixed some issues with newer versions of Django
initial CP code support
getting cpcodes to work and adding domain param for production or staging
finally fixed nagging traceback with Nick's help
Merge pull request #4 from TeamSidewinder/cpcode_support_plus_mods

Cpcode support plus mods