refactor the configuration options

- use optparse to read command-line options
- config now moved to a specific folder
- separate credentials from the rest of the configuration to improve
security