Added dataset model and rest API start. fixes #856 fixes #857.