Merge pull request #662 from ogail/master

Enable customizable endpoints for storage, service management and service bus
Fix counting bytes instead of chars