Added new command SickBeard.GetDefaults. Noticed that we should move the SeasonList and Seasons commands into the Show.XXX umbrella.
Added new command SB.SetDefaults
Renamed command: SeasonList -> Show.SeasonList
Renamed command: Seasons -> Show.Seasons
Revised the SB.SetDefaults code.
Misc PyLint fixes
episode.search: only send the quality string back on success
new cmd: sb.getmessages ... well to get the messages from the internal message queue
New command: SB.GetMessages -- Note that this will battle the webui for displaying messages... messages expire after retrieved or 1min after creation.
Added some missing help command entries.
Changed the optional command minLevel to min_level in the Logs command to conform to our naming scheme.
Started the Show.AddNew backend, ran into a few quirks and will work on this further at a later date.
Show.AddNew -- follows the original sb logic a bit more closely but is handled internally
new response scheme! Warning: breaks all api calls !!
{data:<data>,
 message: <message_string>,
 result: <result_string>
}
<data> = the response you got so far... e.g if you used you response so far as "resonse.name" you need to use "response.data.name" now... this can be a list or dict ... this can be a empty list or a empty dict
<message_string> = human readable message. can be a empty string
<result_string> = a string, defines the result type. can be one of: success, failure, timeout, error
the acceess denied response should use the new response scheme too
Merge branch 'api' of https://github.com/lad1337/Sick-Beard into api
Applying lad1337's latest updates manually due to rebase/force commit...
use new scheme on composing output error
PEP-8 fixes for lad's recent changes. Adjusted offset for day of the week, 1= monday not 0.
Merge branch 'api' of https://github.com/lad1337/Sick-Beard into api
PEP-8 fixes.
use new response scheme for _help output. cmd desc will be the response message
change of the succes output of episode.search ... snatched quality is now in the data pat of the response

and dont raise ApiError send a RESULT_ERROR
more usage of the new response scheme no use of the ApiError except where it is really needed !

differentiate between ApiError and real program errors -> new fatal response state = intenal error
removed some old code / functions