Added the ability to add magnet links, and implemented RoutedUIEvents.