Unify internal/external errors
Try to use less server-specific code for FB tokens
Add :smart :noref modes, update README