WORK IN PROGRESS..
Simple summary for now: Take a silver dagger to the ghost in any town, drop the dagger, and say "g, forgive me". Congrats, you are lawful again!