security changes

changed $category_id to be absint in save-data.functions.php. Also changed width and
height to int in save-data.functions.php. Used
esc_url when $return_url is echoed out in API.php.
Ah, thanks. That's why I put it that specific commit as a Request for comment (RFC). Wanted some extra eyes on the code.