Clean up in main.go

1. Migrated config related code out to config.go
2. Removed osin references in main.go