Rename .ui file, add build dir to gitignore list. 

* Rename file preferencedialog.ui to preferencesdialog.ui so it matches the implementation(preferencesdialog.cpp, and preferencesdialog.h) files.
* Add build dir to gitignore list.