chore(engine-rest): test and fix EqualsList and EqualsMap matchers
chore(cycle): swap xml elements to fix jenkins test

- basically the ordering is correct but xmlunit compares the elements
  in the wrong order, but I don't know how to fix this so this is
  the dirty method
chore(qa): set timeouts for http client
chore(engine): code cleanup

related to #CAM-2435
refactor(engine-rest): change signature of GET variable-instance

- change JSON response of variable instance queries to not have two
  separated fields value and serializedValue but only have one
  field value because the two are anyway mutually exclusive

related to CAM-2435
feat(engine-rest): set execution/task variables from serialized

- allows to set variables from their serialized representation
  if a variable type is provided and the update does not match
  a "primitive" variable operation (i.e. the value is a standard JDK
  class)
- allows to set Serializable variables from a serialized representation
  by POSTing a byte array

related to CAM-2634
chore(engine-rest): undo deprecation of binary variable value paths

- makes the API inconsistent otherwise

related to CAM-2634
chore(engine): throw exception if outside of commandContext

- SerializationType needs the command context for variable instances
- SpinSerializationType doesn't need the command context at all and
  it doesn't indicates whether the deserialization will work or not

related to #CAM-2435
fix(engine): fix typo in historic variable instance getter
chore(rest): add value type name field for historic variable update

related to #CAM-2435
chore(rest): refactor mock provider/builder

related to #CAM-2435
chore(engine): rename spin serialization type

- spin serialization type is now lower case and with hyphens
- the exception message contains a hint to the
  'defaultSerializationFormat' configuration if the spin serialization
  type is not available
chore(rest): fix function names and exception type

related to #CAM-2634
fix(engine): spin-serialization variable type name
fix(distro): h2database library in jboss & wildfly

related to #CAM-2707
feat(engine): add filter entity, manager and service

- add new process engine service for filters
- add filter entity
- add support for create/delete/update/query/execute of a task filter

related to #CAM-2628, #CAM-2630
Merge branch 'master' of github.com:camunda/camunda-bpm-platform
feat(engine): do not change job retries on OptimisticLockingException

- all other job properties are updated as if the exception is any
  exception, that means the error message is populated and the lock
  expiration time configured according to a custom retry strategy

related to CAM-2705
fix(jboss): load script resources from PA classpath

Set TCCL to Classloader of the process application when executing
the deployment.

This makes it possible to load script resources from a process
application.

related to #CAM-2711
fix(engine): fix typo of DbEntityManager

- typo was introduced during the refactoring of the persistence
  layer

related to #CAM-2602