Re-add shares archive table for 24h hashrates

This should fix #312 and fix #256 where hashrates are reset on quick rounds.
Users are not able to properly view their past 24h hashrates.

Will be merged once confirmed working.
fixing stmt issue
Fixing pool hashrate graph

Should fix #312 completely.
User proper archive table for union

Addresses #312
Merge pull request #398 from TheSerapher/issue-312-24h-hashrates

Issue 312 24h hashrates
Properly display piechart, first attempt

Should further address #312
Update proportional_payout.php

Abort if no shares could be found for a block to allow user intervention to fix it.
Merge branch 'next' into issue-392
last cleanup before merge
Merge pull request #401 from TheSerapher/issue-392

Issue 392
Removed piechart, removed no shares notification

* Removed broken piechart for now
* Do not display message if no shares are found for calculations to
  avoid cross-tabe error messages

Fixes #312
Merge pull request #403 from TheSerapher/issue-312-piechart

Issue 312 piechart
Better number format for block percentages
Better number format for est. shares
Adding 3rd party Scrypt library

This will allow us to start checking a blockhash against a solution
submitted to the database.

Details on this in the ticket. Just a WIP to save file states.

Addresses #405
Adding more descriptive message for txfee

Fixes #400
Merge pull request #407 from TheSerapher/issue-400

Adding more descriptive message for txfee
Adding solution detections for blocks

This will finally fix all block finding issues with a 4 way detection.
The find upstream method will continue to try other ways to find a
proper share until they are all exhausted or a match was found.

* Use stratum solution, create scrypt hash from block header
* Use pushpoold solution, create solution string from block header
* Use first available upstream share in timerange of block time
* Use *any* first available valid share older than time of block

This will fix #405 - no more unknown blocks. Ever.
removing debug output
Adding share type to log output

This will display which detection mechanism caught the share.
Fixed stratum detection

Fixes #405