[frontend] added helper function and flask filter which allows to ensure that url starts with either http or https, see config