Extended beta-interval capabilities.

Allowed for n-day rolling beta calculation for any (hopefully
reasonable) n.

To do: all the stuff above, make the code more organized, figure out
better names for the variables, write a readme.