Fixing critical issue with manual- and autopayouts

This is a proposed fix for #128:

* Mark auto_payout running via DB setting, unlock when done
* Just before actually sending money, check for running cron

Please refer to the ticket for details
Merge pull request #129 from TheSerapher/issue-128

Fixing critical issue with manual- and autopayouts
minor template update for contributor hashrates
minor template update for contributor shares
Fixing admin panel user display

* Fixes #130. Removed total shares in favor of the hashrate.
* Fixes hashrate display.
* Added pagination template file to include pagination on other pages in
the future.
Merge pull request #131 from TheSerapher/issue-130

Fixing admin panel user display
Re-Adding shares for admin user panel

* Re-enables estimations
* Still fixes #130 which had issues with hashrates, those are still
  fixed
Merge pull request #132 from TheSerapher/issue-130

Re-Adding shares for admin user panel
Properly display both shares and hashrates

* As proposed in #132 thi allows for both shares and hashsrates

Fixes #132.
Merge pull request #134 from TheSerapher/issue-133

Properly display both shares and hashrates
Add worker montioring to template and worker class

* Add configurable monitoring for workers into template
* Store monitoring status in DB

First commit for #116
Progress on notifications

* Added main mail class
* notification class extends mail class
* Added mail template for IDLE workers
* Added notification table to SQL structure

This works already but once notified the status is not reset as soon as
a worker is active again. Need to think of a system to do that
automatically.

Addresses #116
Adding notification reset once worker is active

Go through all active notifications (active means they are not notified
again) and check if their state has changed. If so, mark as inactive and
allow for re-notification of the same type and data.
Working notification system

* Added things to mail templates
* Modified user password reset call for new mail template
* Added BASEPATH to smarty code to ensure templates are compiled in the
  proper directory
* Updated mail and notification class
* Updated notification cron
* Added notification cron to run-cron list
Add worker montioring to template and worker class

* Add configurable monitoring for workers into template
* Store monitoring status in DB

First commit for #116
Progress on notifications

* Added main mail class
* notification class extends mail class
* Added mail template for IDLE workers
* Added notification table to SQL structure

This works already but once notified the status is not reset as soon as
a worker is active again. Need to think of a system to do that
automatically.

Addresses #116
Adding notification reset once worker is active

Go through all active notifications (active means they are not notified
again) and check if their state has changed. If so, mark as inactive and
allow for re-notification of the same type and data.
Working notification system

* Added things to mail templates
* Modified user password reset call for new mail template
* Added BASEPATH to smarty code to ensure templates are compiled in the
  proper directory
* Updated mail and notification class
* Updated notification cron
* Added notification cron to run-cron list
Merge branch 'worker-monitor' of github.com:TheSerapher/php-mmcfe-ng into worker-monitor
adding new structure for notifications