Fix bugs with preview output in API.
Add preview to "current" revision. + stabalise some features