AshLoom port restructured into lib and test with rakefile