Removed deprecated methods from WC_Frontend_Scripts and rewrote script registration and localization to run once.

Closes #6338