feature #561
Revert "fix for timezone php error"

This reverts commit ba410f30ea4e057061bc717f6b2c7eb9222778b2.
timezone php error fix again
moved EDOPTIONS position

moved toolbar and edoptions to bottom of config, so they can override
all config options.
fixes #565
added global cke $EDOPTIONS
Changed autosave to non draft

drafts are no where near implemented, we should at least make autosave
usable until then.
fixes #407

api changes
implementing curl timeouts default 500ms
curl opt NOSIGNAL
added api debugging

added config directives
+ $apitimeout = 500; // milliseconds to curl and fopen timeouts
+ $debugApi = false; // output debugging info to debugLog
+ $nocache  = false; // do not use cache
+ $nocurl   = false; // do not use curl

changed static urls to config

added fopen check to avoid some errors when not available as fallback
added github link to support
feature #568
upload whitelists

added arrays
$mime_type_whitelist;
$file_ext_whitelist;

can be set globally or added to configuration.php

If EITHER arrays are set blacklists will be ignored.
more fixes for #407

verbose curl logging
cleaned up logging
temp minor fix for #573
Merge branch 'hotfixes'

Conflicts:
	admin/edit.php
	admin/inc/common.php
	admin/inc/template_functions.php
	admin/template/js/ckeditor/config.js
fix up merge
redo
f239aa602c526daadbef239aa602c526daadbe5e3b0e620b177b04c81255e3b0e620b177b04c8125
merge fix
supress error if subval subkey does not exist

fixes missing sort key issues until menu sort is fixed.
removed api debug info
started implementing new fields

title long
summary
robots

ui incomplete
feature #506

Some new fields implemented.
Completely refactored metawindow css, was very selector specific, alot
of the css is old and outdated, changed all form styles to match across
css, remove #metadata_window styles to allow compatability with tabs.
This may break some plugins,i will have to see and reimplement legacy
support, but all styles are now mapped to .xopt and .xsec classes so it
should be alright.

changed all form elements to 100%, now controlled by container margins,
as it should be, previous percentages were not compatible with container
resizing or fluid styles.

moved meta to meta tab, things are not in final locations, will adjust
later and add plugable content length checkers to all textareas.