Chrome extension enhancements

This is the complete refactor of the chrome extension.