Transport for London Bus Node

First attempt at the TfL Bus node.

@knolleary, I've got an issue and the node cannot be finalised until the issue is resolved. I'll need your help/decisions:

Issue:

I just hit a problem today that needs your attention. While being configured, some of the TfL nodes will have to send out queries to the TfL servers. This is necessary in order to populate certain fields in the UI (such as the predictive search box for the bike stands or the list of nearby bus stops).

However if the TfL server replies with an error or if there's a connection issue, the user HAS TO be informed, as configuration of the node is not possible.

Questions:

Where/how shall we display the error in the UI and what should it look like?
Shall we try to pass through the TfL error to the user, or more likely, shall we create our own error?


I suppose we would like to log the error too. I'll figure out how to access/make the global logger accessible as the node is not yet deployed.
I decided to use collections/set in order to avoid re-inventing the wheel. My personal preference was to avoid doing what you're suggesting ( I think re-using code is a good thing), however I'm happy to change it. I don't know if installation time/footprint is a priority for Node-RED.