relay_acl: added result_store

and refactored for simplicity and testability.

config loading is done in refresh_config, mainly to make writing tests
convenient. Tests can set plugin.cfg values, test, set other values, repeat ad testium)