Secured API Controller

New secured closed API controller, to pass data from server to
javascript files, which are needed for the charts.