Additional changes and corrections

Create  template tag for BP search form, correct some errors, more
cleanups