compiler-api: simplify compiler API

There were two redundant functions in the module that did the same thing but had different definitions (`compile` and `of_policy`). In addition, renamed `to_netkat` to `to_policy`.