[SysApps] Move the Promise implementation to a module

So it can be shared with other APIs. We still need to evaluate if
we can use the Chromium's implementation of Promise or if we need
to write a new one + native helpers.