Logic and other helper classes to help set up an authorization server