sourcemaps: rename rootpath to basepath and add a rootpath option
sourcemaps: Fix some issues with output, add an inline flag, add a test harness