Initial add of safely.

Originally I was going to make safely a separate project, but it
works well as a small utility to Cookoo. So for now I am putting
it here.