Refinements.
Moving discovery to mnesia.
Discovery refinements.
Schema refinements.
Fix.
Function export fix.
Log fix.
Fixes.
Refinements.
Merged with discovery branch.