Added support for custom CAS routes. Previously defaulted to '/cas'

This commit also standardizes the code so it follows PEP8 styling conventions.