fixed checking svn repo

As of svn 1.7+, there is no .svn dir in each folder. Changed
add_svn_segment to use svn info to check if the current folder is in an
svn repo.
cleaned up some old code
typo
changed the color map

Better for importing a config file
Added config files for the colors.
Added config file option.