Refactor api

* All stats must be registered,
* Any stat not registered will not be sent
* ALL invalid stats will be sent to stdout