WIP towards Elgg 1.9 version.

This is just to discuss current state and to provide something to test. Do not merge anything.