Defined module level security for CommCare and Kookoo

https://trello.com/c/FiVNaV9s

This commit is an extension of commit:
http://review.motechproject.org/#/c/3406/

Change-Id: I338c6bf300755b1e702025fe041893599f004d98