Bug 865256 - Part 3: Import blink's PeriodicWave implementation. r=ehsan