Merged cmake

Squashed commit of the following:

commit b9dda80224cc0033dbd4d07538cd3e0baf04a3d0
Author: Constantin <cmw@cmw.xy>
Date:   Fri Sep 27 16:02:20 2013 +0200

    Compiler opt lvl is an option now

commit f09de70a8ebb6172c74074fa03923f841874bedc
Author: Constantin <cmw@cmw.xy>
Date:   Fri Sep 27 13:54:16 2013 +0200

    Plugin hooks can be turned off during compile time

commit a901eb23a22c591eaf9dcda37d42e733959e2cb2
Author: Constantin <cmw@cmw.xy>
Date:   Fri Sep 27 12:24:39 2013 +0200

    Added dynamic configuration through cmake

commit 517e271cc00d57b96a894a0b2c2162cc327b2dc6
Author: Constantin <cmw@cmw.xy>
Date:   Fri Sep 27 10:49:55 2013 +0200

    Change to cmake build system