Add compare_results.c module

Move code from check_query.c into librasqalcmdline.la
ws