Merge bbapp and bbos

Merge bbapp and bbos. Now bbapp can be eliminated. Add virtualenv support.