started err logging system, few minor updates to component js
added client side constants
misc changes, got the ten foods dialog working better