Gov. Dannel P. Malloy announced a new agreement that will result in Amazon.com collecting the state sales tax on Connecticut purchases.