Make use of optparse

I found it a bit easier to use optparse and getpass not to store user/password in source code.