Improve api

Various changes needed by File/Container implementation in loopback-android.

/to: @raymondfeng please review
/cc: @Schoonology FYI