got media upload and publish post working.  need to do some additional error checking around http POST values.