remove unused legay code

removes a lot of legacy code. The PR contains two source of LOC cuts:

- replaced scoped_ptr implementation with STLs unique_ptr.
- replaced C++11 type_traits simulation code with the actual C++11 type traits
- removed the hand-rolled serialization code that we don't use and would pipe thru Protobuffers anyway

![bildschirmfoto 2014-08-19 um 10 49 58](https://cloud.githubusercontent.com/assets/1067895/3963590/4670d844-277e-11e4-985e-0f8fa2eb851c.png)