[install] fix for name and also separate -devel package

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[rpm] cor-devel depends on cor

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[c++] c++ functions similar to container_of macro

container_of and offsetof can't be used for non-pod c++ objects, so
using templates member_offset and member_container

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
cor.pc version bump

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[util] handle constructor with validation

Constructors, validating handle and throwing exception on invalid
one.

Handle takes handle_type from traits.

Allow to use traits inside class derived from Handle

NB! Breaking compatibility: Handle needs only one template arg and Traits
should supply handle_type typedef

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[util] basic RAII helper

use on_scope_exit(fn) to unconditionally execute function at the end of
the scope

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[mt] initial impl of Future and BasicCondition

Utilities based on c++11 features to be used for thread sync. Future is
created for cases when std::future is unapplicable

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
version bump

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[options] option to show "usage"

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[mt] correct BasicCondition, Future updates

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[notlisp] initialize Expr str member

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[mt] link cor with pthread

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[pkgconfig] Configure version

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
backtrace size()

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[error] fix in backtrace copy ctor

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[error] backtrace improvements

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[mt] tests

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[tut] tut is external dependency now

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[tests] run unit tests while building rpms

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>