Changing hash- and share rate calculation SQL

* Do not include shares_archive table
 * Main reason: This table is optional
 * Secondary reason: Speeds up the query from 1.3s to 0.005s
* Drawback: Once a block is found it takes 10 minutes for the stats to
  be accuracte again

This could potentially be reverted but since shares_archive is optional
and the speed increase is rather significant I'd like to keep it this
way.
Removed warning from worker list

* Workers can safely be removed even during a round
Addressing #96, missing difficulty on stats page

* Properly assign template variable
* Removed unneeded additional template
Merge pull request #97 from TheSerapher/issue-96

Addressing #96, missing difficulty on stats page
Initial file import for admin panel

* Added isAdmin to user class
 * Run isAdmin on EACH page to ensure admin status hasn't changed
* Added main page with no content
* Added user query page with basic form, no content
Adding working user admin panel to query user DB

* Users are all fetched from the DB
* Each user is assigned special stats
 * Hashrate
 * Shares
 * Balance
 * Est. Payout
 * Est. Donation
* Display in sortable and paginated table

This is not well optimized. Each user stats are grabbed individually
via the stats and transaction classes. It would probably make sense to
expand the statistics class to list a full user list with all statistics
available instead to cover this in a single SQL query.
adding user ID to table
adding number format to admin user query table
fixing sort arrows showing behind text
fixing JS crash when table has no content
Moving from user to statistics class

* This fetches all users and joins with shares table

Should speed up things a fair bit.
sorting does not work with number_format
Merge pull request #98 from TheSerapher/admin-panel

Admin panel
Re-adding admin flags to user list for admin panel

Fixes #99
Merge pull request #100 from TheSerapher/issue-99

Re-adding admin flags to user list for admin panel
Adding wallet information in Admin panel

Fixes #63 and adds proper wallet information:

* Wallet balance
* Locked balance for users
* Liquid assets available to pool owner
Find ALL transactions, even unconfirmed

* This ensures that credits are not unlocked and available to the pool
Merge pull request #101 from TheSerapher/issue-63

Issue 63
Removed PHP Notice warning when running cron

This fixes #102, we don't need to see this warning since it doesn't
affect the job at all.
Merge pull request #103 from TheSerapher/issue-102

Removed PHP Notice warning when running cron