PowerAPI is a middleware toolkit for building software-defined power meters