Improve command line argument handling

Fix a segmentation fault with Owncloud --help. 
Changes to handling of command line options to be better: Add -h as help short. If a command line argument isn't recognized, print that it isn't recognized, print help, and abort.