tbf/rlc: Move the parsing of RBB to Decoding, move window marking out

Move the parsing of the bitbmap out of the TBF code into Decoding.
Move the updating of the V_B into the V_B class. Add some comments
about handling the mod_sns, mod_sns_half parameters by using template
code.
diff --git a/src/decoding.cpp b/src/decoding.cpp
index e7ec99a..0f70872 100644
--- a/src/decoding.cpp
+++ b/src/decoding.cpp
@@ -83,3 +83,17 @@
 	return 0;
 }
 
+/**
+ * show_rbb needs to be an array with 65 elements
+ */
+void Decoding::extract_rbb(const uint8_t *rbb, char *show_rbb)
+{
+	for (int i = 63; i >= 0; i--) {
+		uint8_t bit;
+
+		bit = (rbb[i >> 3]  >>  (7 - (i&7)))   & 1;
+		show_rbb[i] = bit ? '1' : 'o';
+	}
+
+	show_rbb[64] = '\0';
+}