Fixed some bugs, Added helper for converting HDocuments to Dictionaries Compatible with JSON Serialization

Also added escaping of column names for underlying SQLite DB. Made
removeAll, getAllDocuments of HDocument static based.