Optutils refactor

Complete refactor of the command line parsing and structure of the code
in the swork frontend. Now uses optutils to provide a consistent and
clean way to parse arguments. Not yet stabilized

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>