Several refactoring tasks and add initial js and css