Fixed various compilation issue Fixed draft rest library (still experimental and should be removed in the future)
Adapted existing code to fit the new router design.