Add detected_buildpack attribute to app model and REST api.