Code to support list functions on views

I've added some code to support list functions on views. It's not complete but the idea is to review it and if agreed in principle, the approach can be propagated to add code to complete this. The list might be showing a lot of commits, but please focus on my commit on Dec-9th with the comment " Added code to illustrate usage of list functions.  "