Replace Main module with WebUI

Remove Snap web-server with http-server. Main can be switched between
TextUI and WebUI