monitor: use app options parsing helper code

This app is pretty ancient, so it was never converted to use the
option parsing helper code.  I'd like to add an option to this app
that takes an argument, and that's a pain to do when not using this
helper, so start by doing this conversion.

Review: https://reviewboard.asterisk.org/r/3429/


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@412102 f38db490-d61c-443f-a65b-d21fe96a405b