Working file upload for featured image.

Based on suggestions and code from
http://wordpress.stackexchange.com/questions/10732/exposing-attachment-uploading-to-the-front-end-delicate?rq=1