make file structure PSR-0 compatible

move global constants to class, add gitignore