Modified files to style consistency and bug fixes

- All server related code follows the same coding style
to variable and function naming
- Fixed bugs on provider.cpp that generated crashes on simple
requests