Jm/expose up

This is the work to refactor most of the rake madness into an api class, move the ec-metal repo to being a gem and generally make things work.