New Bug functionality plus some refactoring

Finished implementing new bug functionality, and combined some of the
code between new bug and bug details.  More code could be combined
between these two in the future. I also deleted the bugservice class
since there were no references to it in the project.