Monitors

This is first attempt at automatic validation routine creation. I sidestepped the issue of selecting proper variables for monitoring - since the tagged theano variables carry the information on how to aggregate them, the minimal validator needs just the list of variables. Selection should be handled elsewhere.

My idea is that such a validator would be run in the training loop via a hook. Another function would save somewhere or print the computed values.
The shape of (0,)*ndim is better, I was sort of worried about ending with some weird errors later. W know the number of dimensions - it is in the expression we allocate the shared variable for.