Take a stab at Java-style option parsing.

I'm putting the option parser under src/ so we can eventually use it for both
the browser and the console.