Reformat security configuration.
Refactor dataSource bean to use regex and add tests.