Final fixes and cleanups

to pdf functions implemented. better method for dictionary calls used without using the tooltip title. advanced search fixed. fixes in design.

Note: database needs a round of update, no schema change, only value updates. 

dictionary items are now fetched on load, and a lookup table/dictionary is created for connecting the field names to field codes. then when click on question marks, the field name is parsed out of the dom element and using the lookup table, the field codes are passed to the server. this to work requires the corrected values of data_dictionary which were updated and now are in the dict.csv and need to update the postgres database to it, if not they won't work.