added restler lib
added basic logic but need to fix some glitches and misconcepts