Put model running calls in __main__ block for examples

To better separate the model specification from model execution, for several (most) examples I've placed the model running calls in a if `__name__=='__main__'` block. I've left the ones derived from iPython notebooks and very simple models alone.

I have also added a `random_seeds` argument to `psample`, as I was starting to get stochastic errors with the diagnostic tests.