Closes #119 - moved persistence builders from restful-api module into persistence module. Refactor restful-api module. Added comments in the restful-api module