Bug 968803 - part 1 - factor out class naming into its own function; r=ekr
Bug 968803 - part 2 - statically type runnable classes that return a result; r=ekr