add and support milestone model, update sql,shell scripts

1.add milestone model's sql,script and device controller code
2.update sql,shell scripts
* d1155ee : update sql and shell scripts
* 55b032e : update recording server rtmp part
* 62cec4f : update device and recording server