Closes #2

- rearange rake tasks, split into lib/tasks from single Rakefile
- add debug:collect task for gathering debuggin information.