fixes: plugin dir name, WP 3.7 compat, refactored API calls