Merge pull request #30 from ralphtheninja/master

skip os check for man pages, we are only *nix at the moment anyway
break out all the things to functions, move stuff to repl.cc and get rid of ldb:: on everything
reorder functions in ldb.cc, make local functions static
reorder functions in repl.cc, get rid of ldb:: for static functions
clean up includes
add lib/repl.h