First (still non-working) version of the timestamp + uuid sync 

- timestamp field added to events and attributes (int length 11 called
timestamp, default value 0)
- timestamps created on add / edit when apprioriate
- during an add, if an event/attribute is not being pushed through a
sync with an existing timestamp, create a timestamp
- on edit, check whether the timestamp is newer than the old one and
only add the attribute or event then
More work on the timestamps

- Event correctly changes timestamp when attribute edited in the UI
- Attribute correctly changes timestamp when edited in the UI

- Still very much work in progress, several parts are not supposed to
work yet
Saving over night, something still blocks the timestamp from being saved
after a push...
Update to the sync

- timestamp now correctly compared, events that have an older timestamp
  will be discarded, same with attributes

- right now the response is the same as a successful edit though, should
  be handled more gracefully

- pull is not yet tested

- attachments and shadow attributes not yet implemented

- backflow is nicely blocked by the timestamp as intended

- needs cleanup (from, dist_change)
Small mistake in the previous commit
First cleanup of AttributesController and EventsController after the
move to timestamps
Small change to the timestamp

- Moved the timestamp generation for attributes and events that are
being saved and don't have one to Model->beforeValidate()
Small bug with the highlighthelper

- ending the input with a break line will cause the highlter to fail
- fixed
Accidental inclusion of some debug in the previous commit

- removed
Removed incorrect validation
Change to new distribution

- first stage
new sql changes
Few changes
Further changes to the distribution

- changed to use the new int field
Further work on the distribution
Merge branch 'develop' of https://github.com/MISP/MISP into feature/sync/timestamp

Conflicts:
	app/View/Attributes/index.ctp
	app/View/Events/add.ctp
	app/View/Events/edit.ctp
Further changes to the degradation of the distribution
Merge branch 'feature/sync/timestamp' of https://github.com/MISP/MISP into feature/sync/timestamp
Small bug with view() fixed
Fix to the attribute list when not logged in

- incorrect syntax fixed