refactored: POST arrays clientContext and serverContext separated into corresponding classes with base class Context;
code cleaned up to PSR-2