JC: Added payment request for each access right (with subaction or without) to index page. Added mattr to /lib. Added spec case.