Refactoring iplayer script to support direct email/password arguments