Added 'asMap' and 'asMapList' methods to models and collections

Updated publicacion scripts