Added module Const.
Added const BASE_PATH.
Removed old constants.
Added resources /threads and /messages.