applied patch to remove hard-coded paths
fix for issue 7 - use regular inet sockets on windows

At present, the switch to the differnet socket type is done manually in
the config.php file by setting useInetSocket=true.
added windows socket in socketmessage.php. Should factor out the socket function.
merged changes for Windows

Conflicts:
	config.php
	program_arduino.php
	socketmessage.php
Support for running on Windows.

uses TCP sockets.
Factored out open_socket.
Configuration function to handle default values.
fix sorting bug in profile table
add formatting function for chart legend to prevent NaN from showing, use "--" when no value exists
fixed some bugs in beer-chart.js: 1. hasOwnProperty when iteration over keys. 2. currentDataSet initialized without 'var'. 3. "use strict" in new functions
Merge branch 'develop' of https://github.com/BrewPi/brewpi-www into develop

Conflicts:
	config.php
	maintenance-panel.php
	program_arduino.php
	socket_open.php
	socketmessage.php
fix for ds2413 devices - function list was set as if the device was a temp sensor (since it's a one wire device) - the hardware type is used to distinguish the right function.

ds2413 pin selection was not working - typo in param name and selector.
Reverse accidentally committed modication of sample data in merge by mdma
Fixed error checking when opening log files in getLogs.php
Merge branch 'develop' into feature/new-beer-chart-legend
finish up state indicator in new legend
remember settings when lines are toggled on/off
uses localStorage and defaults to all lines being visible
Fixed issue 30, thanks zoik/peteoc for finding it
Merge branch 'develop' into feature/new-beer-chart-legend