Added noConflict method and test.

Also wrapped lib to prevent leaking globals.

Fixes #2