Add CORS headers to HTTP responses to allow cross origin requests.

See http://enable-cors.org/ , https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
and http://en.wikipedia.org/wiki/Cross-origin_resource_sharing .
process error state handler method after exceeding max retries, unless workflow instance was already in error state
fix tests
final state handler methods should return void instead of NextAction. Log warning if they don't. In 2.0.0 returning NextAction will throw exception.
return NextAction from end state to verify it's still possible (before 2.0.0)
fix javadoc
Replace CORS serlvet filter with a @Provider ContainerResponseFilter impl.
Merge pull request #40 from NitorCreations/cors-headers

Add CORS headers to HTTP responses to allow cross origin requests.
update deps
remove parameter that hides the field, use the field instead
deprecate workflowInstanceAction.workflowId, replace with workflowInstanceId
Merge pull request #43 from NitorCreations/process-error-maxretry

Process error maxretry
Merge pull request #44 from NitorCreations/allow-void

final state handler methods should return void instead of NextAction. Lo...
Merge pull request #46 from NitorCreations/rename-workflow-id

Rename workflow
Merge branch 'master' into recovery-action

Conflicts:
	nflow-engine/src/main/java/com/nitorcreations/nflow/engine/internal/dao/WorkflowInstanceDao.java