Merge pull request #1720 from glassez/webui

WebUI Fixes
Use the torrent_status for the queue_position too.
Make Http parser/generator to be self sufficient.
Redesign HttpServer.