Added parse framework cleaned up code.

Added parse framework cleaned up code, fixed managed object context
threading issue