Removed dependency on non-standard json module. Now automatically converting Buffer objects to base64 objects