Moved upload media logic to custom code

.. Making it easier to be called from web service or code behind file.
Updated names from "Image" to "Media" - making it more generic
Added attachment items to add an event form