cleaning up BASE_URL var to defined const.
adding a plain text formatter for sanitizing data.
cleaning up main view and main controller