Secure api server

This PR relates to issue: https://github.com/jembi/openhim-core-js/issues/205
NB! This PR needs to be merged when the console changes are merged (https://github.com/jembi/openhim-console/pull/151)