Optimized effective potential method and application to static RPA correlation. (25th March 2015)