Support @JSExport with qualified names for classes/objects

Also contains initial tests for the `@JSExport` feature.