Split out process function to module for easier reuse

* Allows access to static anlysis directly from nodejs, for use in
  other tools, eg. linting.
* Fixed missing dependencies, and other sundries.
Merge pull request #1 from ahume/uniform-plugins

Split out process function to module for easier reuse