Clean up README spelling

I was using four ticks ```` for markdown code blocks, which was messing
up vim's spell checker.  I fixed this and then cleaned up a lot of
spelling errors.
Let `$if` return 0 if resource is unresolved

See update to README for logic behind this.