Fix #365 + a lot of Firefox debugging

Also comment out SMP code until further notice.