Changed a lot of things. Ui in Browser can now register Sensors
started with backend. We need a better datastructure. Relation between sensor and interface. Every sensor has always a interface? Yes I think so... I will meditate about it.
Drawing lines in Backend and creating blocks are possible now. Relations and Blocks are saved in localStorage. Next step is to get relevant data for the frontend. Every frontend is an interface with ID in URL. You come to the frontend via click on the link on the block of the ui-block.
Ventanilla can now read the connections out of the relations object. It gives every block the uids of the connected blocks (block.input and block.output). The sensor objects are now compatible with johnny-five Sensor objects. To Register a sensor it is now only necesarry to send the sensor object that must contain a name (e.g. LD35) and a pin (e.g. "A0") and its Interface object, which should contain the uid of the interface (e.g. arduino board) which the sensor is connected with (this is no english anymore...)
We a better architecture... everythin is a block. Every block contains a sensor, actor, interface or logic as hardware-object. Blocks don't need to know their output, they only need to now their inputs. An input for a LD35 sensor is a arudino board for example. To access the output of a block there will be a socket.io Api. via the Uid (unit id) that is stored in the input array, every block can get the relevant data. The path will be like that: /block/:uid/:outputPort (output will be the kind of data you want, e.g.: LD35 has three outputs: voltage, celsius and fahrenheit. It has one input: the arduino board. In this case it doesn't need to subscribe for a datastream. It only needs the boardId to be initilized with the right board.).
Some last changes...
Merge branch 'master' into Alpha_0.1

Conflicts:
	app.js
	views/index.ejs
Merge pull request #1 from BudickDa/Alpha_0.1

Alpha 0.1