Remove main loop from application file

Isolate main in its own file for maximum flexibility
when linking.

Change-Id: I7b1f591386d69a7044c65e7aab2116626166e4ff
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/Makefile.am b/Makefile.am
index 2ded4bf..cbe848d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,4 +7,5 @@
 libhwmon_la_SOURCES = \
 	argument.cpp \
 	directory.cpp \
-	sensorset.cpp
+	sensorset.cpp \
+	mainloop.cpp