Add missing require.
Merge pull request #283 from hindessm/missing-require-util

Add missing util require.
Tidy up runtime credentials
Add some function-level docs
Remove unnecessary semi-colon
Slight tidy to MQTT - move to fa icons - use built in close method.
HTTP In node: Check credentials exist before using
Remove spurious require of the events singleton.
Merge pull request #287 from hindessm/spurious-require-of-events-singleton

Remove spurious require of the events singleton.
Add test that every source file has a test.
Simple fix to check/force http: to close #288
Checks url starts http: or https: - if not add http: - at least then it breaks gently.
Also add resultant url to any error payload if request  fails in order to make debug easier.
Merge pull request #286 from zobalogh/master

Adding a unit test that checks if every .js file in the core
Remove unused references to red/red.js
Merge pull request #290 from hindessm/unused-red-vars

Remove unused references to red/red.js
Remove websocket listeners on close
Fixes #285
HTTP In - fix header iterator
Add library tests
Fix EOL to be dos or unix not both in same file.
Replace tabs with 4 space indent.
Fail with error rather than silently on storage init problems.