[IMPROVED] Ignore locked account shares

* Updated getRoundShares to honor locked accounts
* Updated getSharesForAccounts and getArchiveShares

This will fix #1332 and ignore locked user accounts in share
calculations for payouts.
[ADDED] Account lock status

* Lock 1: user confirmation/unlock pending, count shares
* Lock 2: Admin disabled, ignore shares

This further addresses #1332 and should allow proper dropping of shares
for banned accounts.
[FIX] Lock state 2 for admin locks
[WORKAROUND] Fully debit user before RPC call

* First debit the user fully for this transaction
* Try the payout RPC call
* Fail this so admins can first confirm it worked, then force payouts
* Added comment what line to remove if this happens a lot

This will further address #1586
[FIX] Transaction ID and RPC Transaction ID
[FIX] Reset TX and RPCTX Ids
[FIX] Logic error
Cleaned up pwcheck.js
Merge pull request #1603 from MPOS/double-payouts

Double payouts
Merge pull request #1457 from MPOS/issue-1332

Issue 1332
[FIX] Proper HTTPS detection

Fixes #1618 once merged
[FIX] HTTPS detecion on Template
Merge pull request #1617 from HerrKauwer/pwcheck

Cleaned up pwcheck.js
basic test stuff
just pushing so I can rebase zzz
pushing to start core rebuild
strict class, trying to figure out why edit account doesnt work
blah blah
fixed check against define like it used to even if SECHASH_CHECK is disabled
fixed ajax calls in memcache limiter to use REQUEST page/action rather than QUERY_STRING
updated check in autoloader so default needs to be changed if SECHASH_CHECK is enabled