bed::StmtCache, some name changes

added BE_LOG_END (defined as std::endl) and BE_LOG_STREAM (defined as
std::cerr) to _be.h

added be::getHandledObjectCount<T>() to retireve the number of
SourceHandle<T>s in existence at the moment
component factory