Fix rails 4 compatibility issues in migrations
Avoid singleton serialisation errors
Precompile various vendor assets