Worked on rest request

Moved the convert lib into a namespace.
Made rest request more efficient