A module to handle authentication and role-based authorization within buttercoin apps