Refactor src/main.nqp stuff to bring us closer to embeddability