Purchase Grid Fixes

fix sorting and paging so that it works properly;  use full js file for
flexigrid to avoid display problems; adding data to grid now works via
modal jquery window;