Merge pull request #180 from erasmospunk/master

fix whitespace errors
fix getblocktemplate for ppcoin. if error passing {} try passing nothing.
pass exception on if not 500 internal server error
print IP address of invalid workers
fix error messages
log ip instead of throw it in exception
add log of IP in authorize
Merge pull request #189 from penner42/invalidworkerIP

Log IP addresses of unauthorized workers.
Merge pull request #188 from penner42/ppcoin-fix

[FIX] Coind error: Invalid mode for ppcoin, possibly others
Fix POW PubKey Error
Merge pull request #196 from ahmedbodi/issue-194

Fix POW PubKey Error
remove some semicolons :)
add detection of submitblock on init
make 5 attempts at block submission using detected value of submitblock or getblocktemplate
update exception
fix attempt -> attempts
debugging submitblock output
debugging submitblock output
debugging submitblock output
try both hash_hex and block_hex on checking for block submission