Revert "New routers and rest client"

This reverts commit 5cf8ead7f1d534868f4a47efec176b3226ae16db.