Added 'HashtableExt' class to extend Hashtable by adding 'flatten'
method which converts a Hashtable into a simple Javscript object of
properties and values.