redirector: module enhancement

* module refactoring to move logic from api to model.

* it use flask Registry instead autodiscover_redirect_methods()

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>