TST: Fix bug in stata script.
REF: Move general code to panel base.
BUG: Make sure sorting is done properly. Needs tests.
ENH: Add bare bones PanelPoisson