Use global $_SERVER variable because of known issue with filter_input use on server. Also introduce version controller.