Refactor whole application to use Configuration as a singleton. #76