#1468 for 4_6_x #1639 js_init removal

still a work in progress, right now we've moved them to, lib/orm/source/xt/functions/add_constraint.sql and updated the manifest accordingly in  lib/orm/source/manifest.js