Javascript handlers file, new php class etc

- fix for zero-char bug
- separate handler.js file based on wp-includes/js/plupload/handlers.js
- moved logic to php class