Make custom permissions loaded from module

Make custom permissions functions from module instead of simple
callable.
Callable was impractical 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.

Callables are still working for backward compatibility.