code: def list(self, entityid=None):
  		
  		params = {}
  		if entityid:
  			params['name'] = entityid
  		data = self._http_req('connections',params=params)
  		entities = data['decoded']['connections']
  
  		# hash key will be string (damned json), so convert to integer
  		entities = {int(k): v for k, v in entities.items()}
  		entities_list = sorted(entities.items(), key=lambda x: x[0])
  		entities = OrderedDict(entities_list)
  		return entities
docs: Return the entity with the given entity ID in short form. If no entity 
  		ID is given, all records are listed.
  		
  		It returns a dictionary of the form:
  		{eid : {'id' :
  				'isActive' :
  				'name' :
  				'revisionNr' :
  				'state' :
  				'type' :
  				}}