Fix HTTP response; 204 should be code not body.
Fix missing types logic.

missingTypes.length was greater than zero so the only way it can be
zero immediately afterwards is if splice is called so move the zero
check after the splice.

Despite what istanbul reports this function is covered by the tests.
Adding tests for credentials.registerEndpoint
Merge pull request #312 from hbeeken/test-credentials-registerEndpoint

Adding unit tests for credentials.registerEndpoint
Merge pull request #316 from hindessm/fix-server-http-response

Fix HTTP response; 204 should be code not body.
Merge pull request #317 from hindessm/fix-flows-missing-types-logic

Fix missing types logic.
Adding test for JSON node
Error path tests for 70-JSON.js
Merge pull request #318 from hbeeken/json-node-tests

JSON node tests
Remove duplicate require("util")
Merge pull request #321 from hbeeken/remove-unnecessary-require

Remove duplicate require("util")