Implemented shutdown operation

Signed-off-by: Pedro Nunes <pgh.nunes@gmail.com>
Removed option of web server port in settings

Signed-off-by: Pedro Nunes <pgh.nunes@gmail.com>
Implemented addSocket