Removed config from tests module.
Fixed database test.
Added rc file to main module.
Added broker class.