Added command line options and basic auth.
Merged Charle's commits
Merge pull request #3 from jjmalina/master

Command line arguments and basic auth
Allow using JSONP in API