Implement resource timegate, memento and timemap

Also features a simple demo web application consuming the memento API.