added block validation and account validation scripts
applied seraphers proposed fixes & suggestions
fixed newlines
removed a debug line
fixed orphan detection
[FIX] Removed method call on PPS globals
removed finally block
Merge pull request #1844 from raistlinthewiz/next

Added block and account validation scripts
[FIX] Permissions