Fixed #6327 -- Added has_module_permission method to BaseModelAdmin

* Added tests for this new method and for the other ones:
  * has_add_permission()
  * has_change_permission()
  * has_delete_permission()
* Updated the documentation
Please don't rename the context variable as that's backwards incompatible. Thus, I wouldn't rename the local variable either.