moved configuration to separate file
moved http handlers to separate file