main: Print error: in red bold just for fun

It's easier to see.  Also drop old dead ot_main() function.
test-core.js: Add standard copyright header

Like everything else.