Enable passing of function for tab permissions
Merge pull request #2 from dimagi/custom_tabs_permissions

Enable passing of function for tab permissions