Moved includes/class/Api.php to includes/class-api.php to conform with WordPress coding guidelines.
Rewrote conditional statements to use Yoda conditionals, per the WordPress coding guidelines.