Refactor and tidy of front end, styles and scripts.