Make custom permissions loaded from module

Make custom permissions functions from module instead of simple
callable.
Callable was unpracticle because of circular imports or module not yet
loaded in settings.

This way define a string with the module to load that overrides the
permission functions. No import problems.