Added traits tooltips

- Threw skill facts parsing and tooltipifying into separate functions as
they're shared between skills and traits.
- Added trait tooltips.
- Renamed some css classes to be more generic.
- Fixed a bug in skill facts parsing that wouldn't retrieve correct
unnamed parameters.
- Fixed a bug in skill facts tooltipifying that would capitalize the
whole text instead of fact name.
- Fixed a potential bug that could cause plugin to not detect preset
icons for skill facts properly because of case sensitivity.