ABC reports on Twitter that Boston police are advising people to stay away from trash cans. They suspect that the devices were planted in barrels or trash cans near the path of the race. The timing of the blasts suggests that the explosions were timed to hit when many of the runners would have been crossing the finish line.
I suspect they were triggered via cell phones.