Refactored the media-dispatcher and media-relay scripts
- Use the argparse module for parsing command line arguments
- Replaced --pid with --config-dir and --runtime-dir options
- Added --debug and --debug-memory options
- Added --systemd command line option