libertas: move mesh command handling into mesh.c