Refactor some parser code

Rename scheduler_parser to start_engine parser to make more sense,
also add the -p (purge) option that an earlier commit needs.

Change-Id: I5058e6f60804166e71fd5fefb2e298d27630b3d8