XML marshalling for entities
Add rest API, update controllers and misc style fixes