Fix advanced search when search wordth1 & wordth2

For example. When you use the advanced saearch in listiews or in a report and enter this.
Food & Beverage, the filter just look for the wordth Foot the rest disappear.
We do the same that do the basic search, call to encodeURIComponent.
Import and add picklist values correctly.

When you import a csv with picklist values with & or another special character, is not imported
correctly, save the new value if not exist in the picklist like &amp;
Fix correct view and saved of picklist values
fill account/contact when creating invoice from potential
fixes #242: Query Error accessing Detail View after global search
Remove IE6 bug workaround

This workaround causes some problems on some browsers (at least Firefox
33). The file is also streamed to lower memory usage with big files.
Merge remote-tracking branch 'upstream/master'