Media Upload Buttons

Added media button js to _global_foot method.
Added php function to print out button based on arguments it gets
passed.