Now closes Socket on error.
Spawns a worker on request by message.
Sends a message to the Analyzer after insert.
The select now works as interned returns a tuple().
Format {ok, {Answer}}
Answer = [{select, Col, Rows}]
Also spawns Analyzer.
Big start should do most of the desired things fine.
Gets a list from database with history and then transforms it into a
list of booleans for each port and then mends them to the controller.
This will later go trough the command builder.
Small change in the case, to read from the database you now specify SID
and the amount of records.
Specified standard value of 960 rows to read from DB this equals
10 minutes of data.
Writes the out the package if it has wrong type of data.
Also writes the received string when it is correct formatted.
Package instead of Output is written.
Latest.
Also listen for string only. 
For testing purposes.
@Todos added.
@todo Add some good timeout value.
Sends the control values in the right order.
Added error message.
Switched to binary for testing.
Switched to binary for testing.
Now sends the control string as numbers that represents the string in
ASCII.