Add 'config' endpoint to get the configurations from postgres

@pgte || @mmalecki please