[ADDED] JSONP support for MPOS API

Fixes #1700 once merged.

Thanks @spliznork for the feature request and solution.
[IMPROVED] Logging format

* Added IP address to all log output
* Added Page and Action to all log output
* Modified log messages
* Added Error and Fatal handlers
* Raised failed logins to Error
* Added KLogger default log levels
* Made it most verbose
[FIX] Reset failed login, redirect to trusted location

Fixes #1701
[ADDE] CSRF validation for Worker Deletion

* [ADDED] CSRF token checks to worker page
* [CHANGED] Check for both _GET and _POST ctokens
* [ADDED] CSRF token to each delete call URL

Fixes #1702 once merged
[IMPROVED] Check if cron is running in PHP scripts

* Ensures we don't spawn more than one PHP process
* Will require admin-intervention to reset the cron_active flag in DB

Shouldn't trigger often but may help people.
[UPDATE] Use proper endCronjob in PPS RPC checks
Merge pull request #1696 from MPOS/cron-user-notification

[ADDED] User notifications for disabled crons
[UPGRADE] Upgraded KLogger Library

* [REMOVED] Logfile name not possible right now
* [ADDED] All loglevels supplied by KLogger
Merge pull request #1682 from MPOS/payout-balance-check

Payout balance check
Merge pull request #1695 from MPOS/reward-average

[ADDED] Use block averages for payout estimates
[FIX] Cronjob Logs
[FIX] Fallback to fixed reward without blocks
Fixed back ['memcache']['keyprefix'].
Merge pull request #1711 from raistlinthewiz/next

Fixed back ['memcache']['keyprefix'].
[FIX] Wrong Debit TX type on Manual Payout
[FIX] Insert ID of Payout Request
[FIX] Proper fix for Payout ID #
(#1725) Fix cold wallet check FP and added testnet detection

Without this patch, admin.php checks if it can connect to the wallet service. Regardless of if that check passes or fails, it then checks if the cold wallet address is valid. If the can_connect() test failed, the validateaddress() check will also fail, even if the address is not invalid. To fix this, the validateaddress() check is move to an elseif block in the can_connect() chain.

Additionally, this patch checks to see if the wallet service is running as a testnet. While running as a testnet is perfectly acceptable when testing, the suer should be warned. A lot of folks using the quickstart guide miss this.

A function was added to the Bitcoin class to detect when we are running in a test net. A check was added to admin.php, and the existing can_connect and validateaddress() calls were restructured to solve these issues.
Merge pull request #1704 from MPOS/worker-delete-csrf

[ADDE] CSRF validation for Worker Deletion
Merge pull request #1705 from MPOS/cron-check-active

[IMPROVED] Check if cron is running in PHP scripts