split out adding submodules in manage.py

move to a function of its own so it is easy to add other places locally
Merge pull request #2695 from dimagi/refactor-manage

split out adding submodules in manage.py