server: split out parseHttpRequest()
server: split out parseUdpRequest()
server: replace request string by action number
server: split out _onRequest() et al
server: rm superfluous action fields
server: expose getSwarm()

drops capability to pass a *hex* infoHash
move parseHttpRequest(), parseUdpRequest() to lib/parse_{http,udp}.js
server: split out Swarm
server: unify compact serialization
server swarm: split out announce events
parseUdpRequest(): fix params.ip
parseUdpRequest(): throw on invalid packet
server _onHttpRequest(): ensure non-empty params
server _onHttpRequest(): don't wrap errors in errors
server _onUdpRequest(): don't check empty params, errors will be thrown now
server parseHttpRequest(): simplify info_hash checking
Merge pull request #45 from feross/refactor

Refactor the server-side code