Core pr 4

Merge with PH libraries and a lot of cache optimization in relation to data from the data-well.
Ticket created: http://platform.dandigbib.org/issues/577