added block validation and account validation scripts
applied seraphers proposed fixes & suggestions
fixed newlines
removed a debug line
fixed orphan detection
removed finally block
Merge pull request #1844 from raistlinthewiz/next

Added block and account validation scripts
[FIX] Permissions