Allow to configure REST handler manually

This pull request allows to configure the REST provider manually, allowing to fix #40.