add middleware (websocket server)
add connection from firmware to middleware
middleware bugfixing, begin memcached implementation
Merge branch 'changes' into master

Conflicts:
	daemon/Makefile
	daemon/daemon.c
	firmware/config
add License notice to middleware files
read ip, to start server on, from bash script
middleware and daemon optimizing
middleware
add change counter to cache
add posibillity to get last state from middleware thru websocket

daemon
In middleware-and-file mode check command file changes (not only if
firmware not connected)
resetValues if "setstepID" is 0
generate JSON output with sprintf
Merge branch 'changes' into master

Conflicts:
	daemon/basic_functions.o
	daemon/config
	daemon/daemon.c