many small fixes

- replacerd incorrect Elastica reference in composer json with
AppEnlight;
- error is now string (not integer);
- fixed issue with incorrect hostname;
- message is not stripped to 2048 chars;
- session in request is filled only if available (fixes session issue
when running appenlight from shell commands);
- added logic to differentiate behaviour depending if Yii:app() is web
or console application;
- fixed wrong reference to client (instead of appenlight in Yiii log
route;
Merge remote-tracking branch 'origin/master'

Conflicts: ibs/AppEnlight/Endpoint/Data/Report.php