ipmid: move channel code from libuserlayer to libchannellayer

Separate the channel implementation from the user implementation. It is
possible to link only against the channel layer, but if code is using
the user layer, it is likely to need both user and channel code.

This makes it so that ipmid can support the notion of channels without
supporting users.

Change-Id: I3a7eb7c004e1c2f8aeb696180139cf68c2c4aac0
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/user_channel/Makefile.am b/user_channel/Makefile.am
index e57f4ad..5ec2104 100644
--- a/user_channel/Makefile.am
+++ b/user_channel/Makefile.am
@@ -14,9 +14,7 @@
 libuserlayer_la_SOURCES = \
 	user_layer.cpp \
 	user_mgmt.cpp \
-	passwd_mgr.cpp \
-	channel_mgmt.cpp \
-	channel_layer.cpp
+	passwd_mgr.cpp
 libuserlayer_la_LDFLAGS = \
 	$(SYSTEMD_LIBS) \
 	$(libmapper_LIBS) \
@@ -29,7 +27,9 @@
 	-I$(top_srcdir) \
 	$(COMMON_CXX)
 
-libchannellayer_la_SOURCES =
+libchannellayer_la_SOURCES = \
+	channel_mgmt.cpp \
+	channel_layer.cpp
 libchannellayer_la_LDFLAGS = \
 	$(SYSTEMD_LIBS) \
 	$(libmapper_LIBS) \