Unify code by creating a common get_interface function that returns interface in configs or the default one.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>