Fix behaviour of the usercard popover.
Style changes in client files. Drop /*global*/ declarations.
Complete reorganization of `common` package.