Host API V2

OK- so this mostly works but there is some bug in how firefox is being launched =/ I will try to figure it out later.