Fix count.
Break pointer when user disconnects.
Create function for deleting API resources.
Create API plugin.
Simplify API config.
Simplify API plugin.
Reduce duplicate code by using API plugin.
Simplify post function.
Update function reference.