update for handling notFound URL redirect
Added more constants; and wrapped those constants that we might want to
override inside IF statements to makes sure they are not redeclared
added smarty var BASE_JS_ROOT
refactored form UI logic to use a better approach, allowing for multiple
forms in one page view.
updated to use smarty var for base path
last part of update for using better form UI technique/structure