move jQuery history specific code to mf-history-jquery

untangle messy code
isolate to beta to allow more experimentation without fear of breaking production

Change-Id: I39e1ad46d6033e6e3ba95b73341a8d80b828b343
Merge "move jQuery history specific code to mf-history-jquery"