added handling of for and while statements
updated mocha tests to read files

I mean hey, if these are running on Node anyway, might as
well use that feature right?

...also introduced support for explicitly specifying a
function's namespace via @memberOf