Add separate debug and release configurations in gyp files

Disable optimizations in debug mode. Use that for specs.
Add debug lines for breaking down stack when re-parsing
Remove unnecessary import of public header in specs