Change detection improvements

  - Changed command line option parsing to use Getopt::Long
  - Improved server side change detection
    - Correctly detect trashed files
	- Keep track of last seen change properly
	- Don't repeatedly request the latest change if we've already seen
	  it