Restructured projects so that a web assembly can be introduced. Also fixed some bugs around hosts.