First pass of stripping out old JWS integration code - OPSK-29

Will be replaced with a new implementation for the new JWS Online, starting
initially with just the embedded simulator.
added the rails_best_practices gem

for code quality checks
code tidying up of models_helper
reduced test matrix
factored out some code duplication for setting relationships
fixed error
removing code duplication from controllers create and update

moved code to do with updating assay->asset relationships into assets:common to
be shared across controllers that require it.
a little refactoring of assets_common
minor refactor to remove duplication of getting assay ids and relationship types

for data_file_controller
Revert "reduced test matrix"

This reverts commit 1d1b1d08aff479a6adf7ea06443db0bedc3308ae.