Small refactors
correct JSON encoding for App Buildpack attributes

Also added validation for buildpack URI format.

[finishes #61065714]
Small Refactors