Issue 545: Code cleanup

https://code.google.com/p/esprima/issues/detail?id=545
Issue 546: Tests cannot be run on Windows

https://code.google.com/p/esprima/issues/detail?id=546