add grunt, phantomjs, travis, adapt to whiteout code style