Removed routes from main app and "modulized". Modified token creation function to make it simpler.