`resolve` and `reject` should not be returned.
Removed cruft
Moved socket events query inside parser.
parser: new error reporting on socket
Updates to test suite & corrections based on test suite.