Feature/associations

Changes in associations:
* JSON support.
* Now an empty or non-existing attribute list in a *association discover context request* will behave just like a normal *discover context request*.
You probably have been out of this loop, but for our style guide, we've decided to use brackets also for 'one-line ifs'