Native fragments merged with current master. Second attempt

Hi @emmby,

this is really the best I can do to minimize merge distance with master.
It could replace PR #163 and #27

If we agree on this, I can re-insert the documentation in fragment related classes.

What do you think ?

Stéphane