Added support for date and index extensions (RFC5260) in script parser
Script parser code improvements