add support for additional non-standard capabilities; change FromJSON Capabilities instance so that it properly handles browser capabilities