Change require statements to match the new SDK module layout and update the SDK to 1.13.2

This should let #162 work.

With this change, I no longer see the error about memory.js.