added headers to returned ajax success/error methods and cleaned up unnecessary files.