Added a new property uselocalauth that if set to false will use crowd for authentication - also updated the logic code to use this property to make a distinction between development and production code blocks