Cellular and genetic regulation of short and intermediate-term memory and the Gq alpha regulated transition to long-term memory in C. elegans