Introduce api-definitions
Moved api defs to own file
More work on the new api
- included socket.io into the framework
- changes on api definition
- various cleanups and other changes
still unfinished and pretty untested
Merge branch 'development' of github.com:sweetpi/sweetpi-server into development

Conflicts:
	lib/rules.coffee