Removed all unneeded code from the original example, added dynamical handling of worker threads
Added libb64 (small base64 encode / decode library (not packaged on all common linux distributions)