Adds fabfile and fixes api