Add solve() function to Model class

Add solve() function to Model class. More work to follow, on default
start and end periods.

Minor additions to model template, to store the user-specified span and
control-flow statement to eventually handle output files.