Library extracted

Some of resources moved to external libraries for multiple use.