Bug 922126 - [Clock] Introduce AMD and associated build process

Continued from #12406 based on [Bug 915023, comment 26](https://bugzilla.mozilla.org/show_bug.cgi?id=915023#c26)