add rest server library and related files