Renamed rest.hpp to rest.h, to follow non-template conventions.
Changed functions in rest.cpp to follow a C++ interface instead of C.