Parameters as arguments to main

Hi.
It's only one commit which adds the ability to use youtube-dl programmatically from other python code by passing the commandline arguments to the main method and fetching any SystemExits.

Best regards,
Finn