generic REST implementation
Generic JS now works
Merging changes with generic dao