Removed BgTask and StructuredIO (see BgTask branch)

These are not currently used and require AnyEvent. Removed for now to
remove the AnyEvent dependency. Last state of this code has been
saved in the branch 'BgTask' for easy reference later