Fix the problem with undefined files variable when no pages exists
wrong propertyy message was set in prototype for filenotfounderror
Implementation of git.clone
reject was never called when file not exists
Implementation for git.pull
apiTest moved to test/api subfolder
api function for git implemented