Replace -compile(export_all). with proper API exports

Cosmetic changes to -import(...). to avoid confusing indentation
engine.
Also export attach_loop/1 from distel.erl
Merge pull request #33 from leoliu/master

Replace -compile(export_all). with proper API exports