Added Period to the Model

This is needed to keep track of report numbers - so that report numbers
can restart within every period.
Adding the actual class period
Completing Period logic

Report no now depends on the period created.
Allow NextResetDate to be changed in Foundries page