Initial functional commit

Working extension, minus sync.