Improve handling of Firefox preferences and additional capabilties

This should fix #103 and #104 by replacing the JSON arguments with repeatable arguments for setting preferences and capabilities.