Extracted functions from Adam's amchelpers.r into discrete r files.

Also started an initial attempt at aggregating the various utility
functions into logical groups (ie folders)
Attempted to move utility functions into reasonably intuitive folders

The intent of this is so that function can be easily found by those who
need them  Please have a look at see if you can further improve on what
I've don.