Initial working version of Sponate that resolves references