[misc] Small refactoring to wiki components module
* Use XWikiContext provider instead of accessing it through the Execution
* No need to use a serializer for DocumentReference to print logs.
* Convert some tests to Mockito.