lib: Add base64 library

Since base64 is such a simple and commonly used feature it makes no
sense to build the whole of mbedTLS for it. Instead take the
implementation that comes with mbedTLS and import it as a native library
outside of ext/ for all to use directly.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
diff --git a/lib/Kconfig b/lib/Kconfig
index 72d46dd..da8892f 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -24,4 +24,11 @@
 	  Enable usage of ring buffers. This is similar to kernel FIFOs but ring
 	  buffers manage their own buffer memory and can store arbitrary data.
 	  For optimal performance, use buffer sizes that are a power of 2.
+
+config BASE64
+	bool
+	prompt "Enable base64 encoding and decoding"
+	default n
+	help
+	  Enable base64 encoding and decoding functionality
 endmenu