coding standards

this is to the new php53-pear-CakePHP_CodeSniffer-0.1.11.
Reworked the sync / release control

- Fixed issues with the sync
	- Secondary publishes on remote servers failed
	- Introduced new fields in events to stop backward traverse of
	  edit information that lead to low performance and eroneous
	  distribution information updates when more than 2 servers were
	  linked
	- Deletion of an attribute now deletes on remote servers

- Changes to the event ownership
	- Original creator org now noted in the event itself
	- Only original creator org can change distribution
	- Events will show up with the original creator org for users
	  (admins can see both that and the owner of the event on the
	  local instance)
	- Server.organization now used in junction with the connecting
	  user's org and the instance's org (from the bootstrap) to
	  determine distribution flow control and access rights

- Lots of minor changes
Update to the menu

- minor cosmetic change
Major bug with attributes disappearing during sync

Found a bug where an instance that has a lower attribute count pushing to
another would cause the attributes with equal attribute ID to get
overwritten with the pushed ones. Unsetting the attribute ID before the
push fixes this.
Previous commit was slightly off

Changed the placing of the unset, as it broke the push of attachments.
Should be fine now.
Minor changes

- some changes to the access control

- re-renabled regexp and blacklists, will need a closer look though

- editing a role should update ACL

- some other minor things
Attribute edit fixed

- Editing attributes caused an error because the uuid was not passed back
  from the form (and it is used to find the attribute locally for rest)

- UUID is now used from the read attribute for non rest users. In the long
  run it would be cleaner to not allow non rest users to reach that part
  of the code.
Some updates to the migration script

- Getting it up to date
Changes to the distribution handling of attributes

- Only the creating org of the event can change the distribution of
  attributes

- Attribute distribution setting are only pushed on edits if they were
  manually changed (so that the distribution level of events on the
  creating server doesn't get degraded by an edit and push of the event at
  a synced server when using connected community settings).

- slight change to the batch attribute search, the search terms are only
  echoed up to 9 terms to prevent the mass echoing of a long list
Fixed a minor error

- comma at the end of line missing in SQL file
Update sql script to go from 1.0 -> 2.0

- First version of an SQL upgrade script
Regexp fixed

- Regexp replacement didn't actually change the data in the object. Fixed.
Missing migration sql updates
Composite type change

- composite type's value not exploded if value1 already set (to hopefully
  fix issues with the migration tool)
Updated the migration script (SQL)

- Script updated based on the issues during testing

- Changed the file upload/downoad mechanism.
Several things (search, migration)

- Changes to the default setting for non private events after migration

- search attribute update to be able to exclude events
Fix to the updated search attributes

- issue on the live server with the search field left empty, fixed
Still issues with the attribute search

- should be ok now
Export distribution

- Export didn't take into account distribution rules, should be fixed

- Fixed a bug with editing attributes
Merge branch 'develop' of /home/git/cydefsig into develop