Add comments and X-Subject-Auth
Add comments and X-Subject-Auth

* More comments in the functions
* Check if token is Bearer or X-Subject-Auth and use it in base64 or normal

attybro/xifi-monitoringAPI,SmartInfrastructures/FIWARELab-monitoringAPI,SmartInfrastructures/FIWARELab-monitoringAPI,SmartInfrastructures/FIWARELab-monitoringAPI,attybro/FIWARELab-monitoringAPI