Fix 'Views object should accept functions that return a View', #366
Pass 'view' var into functions declared as view configuration.
Merge pull request #367 from ssafejava/viewFunctions

Implement 'Views object should accept functions that return a View', #366