Shorten property declarations; properties are strong by default

See http://bit.ly/1qITJnt
Properly cast integers in various cases
Properly avoid shadowing local variables

This includes abstracting nested code into blocks.
Fix type error for client test info

Calling unsignedIntegerValue would fail on a NSString.
Minor newline and casting fixes
Merge pull request #28 from 3dna/peng/cleanup-5

Cleanup #5

Perform minor but global property declaration
optimization. Also fix warnings for client tests.