Add a 'rebuild' task to clean and build.

Pre-commit hook should use the rebuild task.

Issue #SPCRP-11 work 5m