refactor resource loading
Merge pull request #57 from miremond/pac4j-13

refactor resource loading