add support for (a) private resources and (b) optional appendage of client
libraries to all html resources, disabled by default