Info 2 [Q] How to Create New Lockscreen

I'm trying to create a custom lockscreen. I'm not interested in widgets, themes, or hacking and existing one, I'm trying to make an all new lockscreen. I have been coding in Java for years and have read the Android development documentation so I'm looking for something technical. I have been looking for info on how to make one from the ground up for weeks but since they changed the home button permission in 4.0 all the information I can find is out of date.

Could someone point me at currently working source code to study or some kind of documentation on the subject? I would be grateful for any resources so I can start working on this project.