Add get_avoptions, simplify document_all_options

I think this simplifies the code a little.  `get_avoptions` can also be used for any other object supporting the AVOptions interface.