#214: refactoring of JS
#214: added DateTime formatter
#214: updated locales of branches
#214: some refactoring of JS, added comments
#214: added specs for TreesController
#214: added specs for Project #restore_branch && #delete_branch