Added support for multiple configuration profiles.

Also refactored some logging; fixed bug wither rate limiting; prepared for release automation.