Tweaks to import/export handling

Per continued discussion on #1157:

* Support `export class` & `export default class`
* Don't expect semicolons after block function and class declarations
* Use ES6 error instead of JS 1.7