Move link/script/meta into the head if they're not already.