[MAJOR] udpated the stats page to clearly distinguish FEs and BEs

The stats page could not tell the difference between a FE and a BE.
It has been revamped to indicate all relevant information. The font
is also slightly smaller in order for all the info to fit into small
screens. The data output path has been greatly simplified to use
string chunks.
diff --git a/include/types/httperr.h b/include/types/httperr.h
index c466328..48c013a 100644
--- a/include/types/httperr.h
+++ b/include/types/httperr.h
@@ -24,14 +24,6 @@
 
 #include <common/config.h>
 
-/* various data sources for the responses */
-#define DATA_SRC_NONE	0
-#define DATA_SRC_STATS	1
-
-/* data transmission states for the responses */
-#define DATA_ST_INIT	0
-#define DATA_ST_DATA	1
-
 /*
  * All implemented return codes
  */
diff --git a/include/types/proto_http.h b/include/types/proto_http.h
index 6e6472e..82c9692 100644
--- a/include/types/proto_http.h
+++ b/include/types/proto_http.h
@@ -65,6 +65,31 @@
 				 * an LF is expected before entering the
 				 * designated state. */
 
+/* various data sources for the responses */
+#define DATA_SRC_NONE	0
+#define DATA_SRC_STATS	1
+
+/* data transmission states for the stats responses */
+enum {
+	DATA_ST_INIT = 0,
+	DATA_ST_HEAD,
+	DATA_ST_INFO,
+	DATA_ST_LIST,
+	DATA_ST_END,
+	DATA_ST_FIN,
+};
+
+/* data transmission states for the stats responses inside a proxy */
+enum {
+	DATA_ST_PX_INIT = 0,
+	DATA_ST_PX_TH,
+	DATA_ST_PX_FE,
+	DATA_ST_PX_SV,
+	DATA_ST_PX_BE,
+	DATA_ST_PX_END,
+	DATA_ST_PX_FIN,
+};
+
 
 #endif /* _TYPES_PROTO_HTTP_H */
 
diff --git a/include/types/proxy.h b/include/types/proxy.h
index bf946a3..d710be8 100644
--- a/include/types/proxy.h
+++ b/include/types/proxy.h
@@ -108,7 +108,8 @@
 	unsigned int maxconn;			/* max # of active sessions on the frontend */
 	unsigned int fullconn;			/* #conns on backend above which servers are used at full load */
 	unsigned failed_conns, failed_resp;	/* failed connect() and responses */
-	unsigned failed_secu;			/* blocked responses because of security concerns */
+	unsigned denied_req, denied_resp;	/* blocked requests/responses because of security concerns */
+	unsigned failed_req;			/* failed requests (eg: invalid or timeout) */
 	int conn_retries;			/* maximum number of connect retries */
 	int options;				/* PR_O_REDISP, PR_O_TRANSP, ... */
 	int mode;				/* mode = PR_MODE_TCP, PR_MODE_HTTP or PR_MODE_HEALTH */