Fix IWidgetVisibility (becomes IATWidgetVisibility)

Fixed defaults for AnalysisRequest and Sample workflow visibilities

WorkflowAwareWidgetVisibility; with this it is possible to write:

StringField(
    'fieldName',
    widget=StringWidget(
        label=_('field Name'),
        visible = {
            'edit': 'visible',  # regular AT uses these and they override
            'view': 'visible',  # everything, without 'edit' you cannot edit
            'wf_state':    {'edit': 'invisible', 'view': 'visible'  },
            'other_state': {'edit': 'visible',   'view': 'invisible'},
    }

SamplingWorkflowWidgetVisibility; shows/hides DateSampled and Sampler

BatchClientFieldWidgetVisibility; shows Client field on ar_add in Batch context
Reference Widget: Spelling error in lookup of allowed_types_method
header_table always tries to show times in datetime values
refactor hidden attributes as IATWIdgetVisibility
stop spurious js_log errors
Batch edit: small schema display re-ordering.
fixed logo lookup and condition for default logo.
store referrer in cookie for page reload support.
Merge pull request #1330 from veroc/arp_cookie

store referrer in cookie for page reload support.
Load results report template dynamically on selection change
Merge pull request #1329 from veroc/3495_1

fixed logo lookup and condition for default logo.
Results report info section styling
Merge branch 'hotfix/next' of github.com:bikalabs/Bika-LIMS into hotfix/next
Set bika.lims.initialized = true after bika.lims js initialization
Register all js objects for further access inside bika.lims domain
Enable js error logging to Plone
Report JS initialization errors
Avoid ajax calls for upgrade/update/instrument status info if no _auth
Merge branch 'hotfix/next' into develop

Conflicts:
	bika/lims/browser/analysisrequest/__init__.py
	bika/lims/browser/analysisrequest/add.py
	bika/lims/browser/analysisrequest/templates/ar_add.pt
	bika/lims/browser/batch/analysisrequests.py
	bika/lims/content/analysisrequest.py