engine: add checkstyle rule UncommentedMain

Enable the rule, remove unused main methods
and suppress the validation for classes where the main method is needed.

Change-Id: Ife8c381ec290214da66cb3df2aa3f29b7c57af98
Signed-off-by: Alissa Bonas <abonas@redhat.com>