Code cleanup and repo path detection

Deleted unnecessary code from view, moved the style related code in style file, removed the event that fires when content changes as it it taken care by Ungit server, and added automatic project directory detection code if available.
Merge pull request #5 from ibnesayeed/master

Code cleanup and repo path detection