Style changes in client files. Drop /*global*/ declarations.
Add comments.
Complete reorganization of `common` package.