Refactor AutoProxy

-Fix API functions alising
-Fix coding standards (namespace prefixing, indentation, declarations, function identifying verb...)
-Fix conditional compilation directives
-Evaluate AutoProxyServer when needed only
-Error handling and logging