Json encoding options implemented

Options are similiar to constants listed here: http://php.net/manual/ru/json.constants.php which are appliable to `json_encode` function.
Some functions are unavailable in PHP below 5.4 so there are replaces for them.

Uses JsonHelper class from https://github.com/joomla-framework/utilities/pull/3