refactored ion_auth package to be used as an hmvc module