detect if a submission url contains a build id

save both build_id and app_id as metadata on the form

step one of http://manage.dimagi.com/default.asp?33472