1. base64 encode/decode
2. tools.c / http-header-content-type compile type warning fixed.