Enhance sourcemap 3

This adds full source-map support for our version of Annotator.

This branch has the non-d-t-m - related commits cherry-picked from upstream master (where they have been merged), and the d-t-m - specific parts added locally.