Bug 732665 - Clean up and clarify the stack sizing logic. v1

The only change in behavior here is that we give the osx check higher precedence
than the DEBUG check, meaning that we end up with 7MB stacks on osx debug rather
than 4MB stacks. But this seems strictly better given the logic involved here.
Bug 732665 - Use separate stack depths for XPConnect JS. WIP