overhaul of the mapper

The reference mapper has been improved with regard to the attachment mapper.
The reference is now set up in the type mapping definition and can be overriden
on a per field basis from a document source.
Referenced fields are now inserted at full path. Multiple fields are possible.
Test extended by an index/search example.