XP Changes, Better Notifications and Fixes!

Here are some changes to a few features, but it's focused on tasks, XP and notifications.

It's done in the style of a change-log, but everything is up for discussion, so please clone, test and discuss!

# XP Changes #
* The TNL (To Next Level) Algorithm has been changed to the following:

![CodeCogsEqn](https://f.cloud.github.com/assets/1628871/213462/518fd146-8386-11e2-8a86-8080598133ab.gif)
Where x is equal to the current level.
* Here are the XP values required to progress to the next level for the first 20 levels:
<table border=1>
  <tbody>
    <tr>
      <td>XP</td>
      <td>Level</td>
      <td>XP</td>
      <td>Level</td>
    </tr>
    <tr>
      <td>1</td>
      <td>100</td>
      <td>11</td>
      <td>1400</td>
    </tr>
    <tr>
      <td>2</td>
      <td>140</td>
      <td>12</td>
      <td>1640</td>
    </tr>
    <tr>
      <td>3</td>
      <td>200</td>
      <td>13</td>
      <td>1900</td>
    </tr>
    <tr>
      <td>4</td>
      <td>280</td>
      <td>14</td>
      <td>2180</td>
    </tr>
    <tr>
      <td>5</td>
      <td>380</td>
      <td>15</td>
      <td>2480</td>
    </tr>
    <tr>
      <td>6</td>
      <td>500</td>
      <td>16</td>
      <td>2800</td>
    </tr>
    <tr>
      <td>7</td>
      <td>640</td>
      <td>17</td>
      <td>3140</td>
    </tr>
    <tr>
      <td>8</td>
      <td>800</td>
      <td>18</td>
      <td>3500</td>
    </tr>
    <tr>
      <td>9</td>
      <td>980</td>
      <td>19</td>
      <td>3880</td>
    </tr>
    <tr>
      <td>10</td>
      <td>1180</td>
      <td>20</td>
      <td>4280</td>
    </tr>
  </tbody>
</table>
* The base XP gain for Tasks, Habits and Todos has been changed to 10 XP.

# Habit and Task Changes #
* Habit degradation is now enabled for purely Up and Down Habits
* Habit degradation is now uniform for both directions (up and down). The formulae for both are as follows:

![CodeCogsEqn 2 ](https://f.cloud.github.com/assets/1628871/213609/bfff5cb2-8397-11e2-9357-08d015298e58.gif)
* Positive Habits are capped at 0.25s
* Negative Habits are capped at -5 HP
* Gold gained from, Todos, Habits and Dailies is no longer dependant on Strength from the Level and Weapon. This is to align the game with RPG elements but will facilitate Gold gaining mechanics in the future.

# Notifications #
* Gold notifications now show Gold and SIlver earnings:
* Death notifications!

![Screen Shot 2013-03-02 at 22 20 07](https://f.cloud.github.com/assets/1628871/213474/968e9182-8387-11e2-9103-f217a0e3c392.png)

# Fixes #
* XP bars should not longer show rounded up values (i.e. no 100/100 XP exception through API triggered habits)
* Checking and Unchecking a Todo or Daily should add and remove the same amount of Gold and XP

# Code Changes #
* Ported some algorithms to algos.coffee
* Swapped some functions in scoring.coffee
* Items are now based on Strength and Defense