InternalParseBeforeLinks tidy

- Add `FactboxBuilder`
- Tidy `FactboxCache` and remove dependency and inheritance

Changes include (to use `PHPUnit_Framework_TestCase`):
- `FactboxCacheTest`
- `InternalParseBeforeLinksTest`
- `OutputPageParserOutputTest`
- `SkinAfterContentTest`
Merge pull request #416 from SemanticMediaWiki/hooks-tidy

InternalParseBeforeLinks tidy
Move some classes to appropriate NS
Merge pull request #417 from SemanticMediaWiki/hooks-tidy

Move some classes to appropriate NS
FileUpload NS
Merge pull request #418 from SemanticMediaWiki/hooks-tidy

FileUpload NS
Hotfix for empty ParserOutput caused by RefreshLinksJob

For details on the issue, see [0] as well as the method to replicate
the problem.