Assign numbers to FSALs

Also use avltrees instead of glists for lookup.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>