Optional upgrade for API nodes

Fixed bug in state snapshot loading Added another build option COLLECT_ACCOUNT_METADATA to enable/disable account_metadata collection. Option is enabled by default.