Added more needed functions to commonmod in prep for multi-area support in newview