Workaround for library leak when switching between profiles.

-Added extra visible condition for all widget includes (where possible).
-It might not be necessary for all include types (widget types), but still implemented to be on the safe side.

The Confluence skin was used as an example for the added visible condition.
Merge pull request #581 from Soapstone/LibraryLeak

Pull Request for Isssue #571 (Library leak in widgets when switching profiles)