use nserror for signalling crypto errors
refactor tests to use nserror and added more tests
expose AGUtil header to clients
update api doc
fix compiler warnings on 64bit
constructor should update self
replace xctool with xcpretty