Quarry reimplementation

Uses new navlib functions;
Implemented basic process persistency.