base_path and environment config handling

set base path and environment configuration moved into application