Loading Filepicker js asynchronously

Adding the ability to exlude loading in rails environments.
Defaulting to not running in test