     # Include sortable functions
     if options.sortable? && options.sortable == true
       Sortable self
-    
+
     # Include selectable functions
     if options.selectable? && options.selectable == true
       Selectable self
-    
+
     # Set relations
     # API wise has_one and belongs_to are the same, so we merge them
     #


        if m.after_create?
          m.after_create()
        
        callbackOrObservable(data)

    if params.length > 0 || typeof params == 'object'
      if model.encrypted_container?
        params = model.encrypt_container(params)
      
      connector.create(params).done callback
    else
      connector.create().done callback

  if options.encrypted_container?
    model.encrypted_container = options.encrypted_container

  if options.encrypted_editable?
    model.encrypted_editable = options.encrypted_editable

  # Debug function
  model.encrypt_container = (data, container) ->

    if params? && params.id?
      connector.read(params.id, params).done callback
    else
      connector.read(params).done callback

    return

  # Shorthand for model.get, just provide a single ID
  #
  model.get_one = (id, callbackOrObservable) ->
    model.get { id: id }, callbackOrObservable

  # Create new object with given params
  #
  model.create = (params = {}, callbackOrObservable) ->
    callback = (data) ->
      callbackOrObservable.push model(data)

    if typeof callbackOrObservable['push'] == 'undefined'
      if typeof callbackOrObservable != 'function'
        console.log 'model.create 2nd parameter needs to be either a function or a pushable object (Array, ObservableArray).\nGiven:'
