[c++11] more conversion to c++11

-replace a lot of member pointers to unique_ptrs
-change the few callbacks to lambdas
-general cleanup of class initializers